Skip to content

Commit cc117f8

Browse files
authored
Merge pull request #32 from cam-inc/fix/npm-publish-prerelease-tag
fix: Add --tag next option for prerelease versions in npm publish
2 parents e2a0933 + bc2ce0e commit cc117f8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,9 @@ jobs:
3535
run: npm run build
3636

3737
- name: Publish to npm with OIDC
38-
run: npm publish --provenance
38+
run: |
39+
if [[ $GITHUB_REF == refs/tags/*-rc* ]]; then
40+
npm publish --provenance --tag next
41+
else
42+
npm publish --provenance
43+
fi

0 commit comments

Comments
 (0)