Skip to content

Commit 7655bd5

Browse files
feat: Update npm-publish workflow to update package.json version from tag
1 parent b835d10 commit 7655bd5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v3
13+
14+
- name: Get tag version
15+
id: get_version
16+
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
17+
18+
- name: Update package.json version
19+
run: npm version --no-git-tag-version ${{ steps.get_version.outputs.VERSION }}
1320

1421
- name: Setup Node.js
1522
uses: actions/setup-node@v3

0 commit comments

Comments
 (0)