Skip to content

Commit

Permalink
Publish dev version on npm to @next instead of @latest
Browse files Browse the repository at this point in the history
Suggested here #1561 (comment) by @mbostock

Fixes #1591
  • Loading branch information
carlopi authored and Mytherin committed Jan 29, 2024
1 parent b1a07a3 commit b07d981
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1056,8 +1056,10 @@ jobs:
- name: Publish to NPM
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
TAG: ${{ startsWith(github.head_ref, 'v') && 'latest' || 'next' }}
if: env.NODE_AUTH_TOKEN != null
run: |
echo "${TAG}"
./scripts/npm_publish_lib.sh
./scripts/npm_publish_shell.sh
./scripts/npm_publish_react.sh
Expand Down

0 comments on commit b07d981

Please sign in to comment.