We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d9171c commit f9aa0e8Copy full SHA for f9aa0e8
.github/workflows/release.yml
@@ -26,6 +26,18 @@ jobs:
26
env:
27
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
28
- run: git update-index --assume-unchanged .npmrc
29
- - run: npx nx release publish
+ - name: Determine npm tag based on release version
30
+ id: get_npm_tag
31
+ run: |
32
+ TAG_NAME="${{ github.ref_name }}"
33
+ NPM_TAG_VALUE="latest" # Default tag
34
+
35
+ if [[ "$TAG_NAME" == *alpha* || "$TAG_NAME" == *beta* || "$TAG_NAME" == *pre* ]]; then
36
+ NPM_TAG_VALUE="next"
37
+ fi
38
39
+ echo "NPM_TAG=${NPM_TAG_VALUE}" >> $GITHUB_ENV
40
+ echo "Determined NPM_TAG: ${NPM_TAG_VALUE}"
41
+ - run: npx nx release publish --tag=$NPM_TAG
42
- if: always()
43
run: rm .npmrc
0 commit comments