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.
2 parents b15020c + fa02595 commit 07811b9Copy full SHA for 07811b9
1 file changed
.github/workflows/release.yml
@@ -26,11 +26,17 @@ jobs:
26
run: make build
27
28
- name: Publish to npm
29
+ # Publish directly here. The Makefile publish-rc/publish targets
30
+ # are interactive (confirm prompt) and re-do the commit/tag/push —
31
+ # correct for a human running the whole release locally, but they
32
+ # hang/cancel in CI, which fires AFTER the tag already exists.
33
run: |
- if [[ "${{ github.ref }}" =~ -rc\.[0-9]+$ ]]; then
- make publish-rc
34
+ if [[ "${GITHUB_REF_NAME}" == *-rc.* ]]; then
35
+ npm publish --tag rc --access public
36
+ elif [[ "${GITHUB_REF_NAME}" == *-beta.* ]]; then
37
+ npm publish --tag beta --access public
38
else
- make publish
39
+ npm publish --access public
40
fi
41
env:
42
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments