File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 3737 - run : npm install -g bun
3838 - run : bun install
3939 - run : bun run build
40- - name : Determine the branch
41- id : branch
42- run : echo ::set-output name=branch::${GITHUB_REF#refs/heads/}
43- - name : Set npm tag
44- id : npm_tag
45- run : |
46- if [ "${{ steps.branch.outputs.branch }}" == "main" ]; then
47- echo ::set-output name=tag::latest
48- elif [ "${{ steps.branch.outputs.branch }}" == "canary" ]; then
49- echo ::set-output name=tag::canary
50- else
51- echo ::set-output name=tag::${{ steps.branch.outputs.branch }}
52- fi
5340 - name : Publish to npm
54- run : npm publish --provenance --access public --tag ${{ steps.npm_tag.outputs.tag }}
41+ run : npm publish --provenance --access public --tag latest
5542 env :
5643 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments