Skip to content

Commit 2a64259

Browse files
committed
set branch name in tag
1 parent 3229886 commit 2a64259

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ 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-
2521
- name: Get version from tag
2622
id: version
2723
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
@@ -30,6 +26,6 @@ jobs:
3026
run: npm version ${{ steps.version.outputs.VERSION }} --no-git-tag-version
3127

3228
- name: Publish to npm
33-
run: npm publish --tag ${{ steps.branch.outputs.BRANCH_NAME }}
29+
run: npm publish --tag ${{ github.ref_name }}
3430
env:
3531
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)