Skip to content

Commit c1054ed

Browse files
committed
.github/workflows: Use npm tag for beta versions.
1 parent dcd4d3a commit c1054ed

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/publish-ide-docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
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
@@ -44,5 +45,5 @@ jobs:
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

.github/workflows/publish-jedi.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
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:
@@ -35,5 +36,5 @@ jobs:
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

0 commit comments

Comments
 (0)