File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 NPM_VERSION=$(echo "$VERSION" | sed 's/\([0-9]\)a\([0-9]\)/\1-alpha.\2/;s/\([0-9]\)b\([0-9]\)/\1-beta.\2/;s/\([0-9]\)rc\([0-9]\)/\1-rc.\2/')
2020 echo "VERSION=$VERSION" >> $GITHUB_ENV
2121 echo "NPM_VERSION=$NPM_VERSION" >> $GITHUB_ENV
22+ echo "NPM_TAG=$(echo "$NPM_VERSION" | grep -q '-' && echo 'next' || echo 'latest')" >> $GITHUB_ENV
2223 - name : Ubuntu packages
2324 run : |
2425 sudo apt-get update
4445 working-directory : npm/ide-docs
4546 - run : yarn build
4647 working-directory : npm/ide-docs
47- - run : npm publish
48+ - run : npm publish --tag "$NPM_TAG"
4849 working-directory : npm/ide-docs
Original file line number Diff line number Diff line change 2020 NPM_VERSION=$(echo "$VERSION" | sed 's/\([0-9]\)a\([0-9]\)/\1-alpha.\2/;s/\([0-9]\)b\([0-9]\)/\1-beta.\2/;s/\([0-9]\)rc\([0-9]\)/\1-rc.\2/')
2121 echo "VERSION=$VERSION" >> $GITHUB_ENV
2222 echo "NPM_VERSION=$NPM_VERSION" >> $GITHUB_ENV
23+ echo "NPM_TAG=$(echo "$NPM_VERSION" | grep -q '-' && echo 'next' || echo 'latest')" >> $GITHUB_ENV
2324 - name : Set up Python
2425 uses : actions/setup-python@v5
2526 with :
3536 registry-url : ' https://registry.npmjs.org'
3637 - run : ./build.py "$NPM_VERSION"
3738 working-directory : npm/jedi
38- - run : npm publish
39+ - run : npm publish --tag "$NPM_TAG"
3940 working-directory : npm/jedi/build
You can’t perform that action at this time.
0 commit comments