Skip to content

Commit bf9932e

Browse files
authored
Update 02-publish.yml
1 parent d931394 commit bf9932e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/02-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ jobs:
3737
- name: 🔜 Publish to npm
3838
env:
3939
TAG: ${{ steps.extractTag.outputs.tag }}
40+
NPM_TAG: ${{ github.event.release.prerelease && 'next' || 'latest' }}
4041
run: |
4142
echo "node, npm and release version:"
4243
node -v
4344
npm -v
4445
SEMVER_VERSION=$(npx find-versions-cli "$TAG")
4546
npm version --no-git-tag-version "$SEMVER_VERSION"
4647
npm config set registry https://registry.npmjs.org/
47-
npm publish --provenance
48+
npm publish --provenance --tag $NPM_TAG

0 commit comments

Comments
 (0)