Skip to content

Commit 3229886

Browse files
committed
fix missing --tag parameter
1 parent a8d6d84 commit 3229886

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/publish.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
node-version: '24'
1919
registry-url: 'https://registry.npmjs.org'
2020

21+
- name: Get branch name
22+
id: branch
23+
run: echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
24+
2125
- name: Get version from tag
2226
id: version
2327
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
@@ -26,6 +30,6 @@ jobs:
2630
run: npm version ${{ steps.version.outputs.VERSION }} --no-git-tag-version
2731

2832
- name: Publish to npm
29-
run: npm publish --tag v${{ steps.version.outputs.VERSION }}
33+
run: npm publish --tag ${{ steps.branch.outputs.BRANCH_NAME }}
3034
env:
3135
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)