We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee5920e commit 9f3d52aCopy full SHA for 9f3d52a
1 file changed
.github/workflows/publish.yml
@@ -13,6 +13,14 @@ jobs:
13
- name: Checkout
14
uses: actions/checkout@v3
15
16
+ - name: Update package.json
17
+ run: |
18
+ # Extract the version from the git tag (e.g., "v1.0.0")
19
+ version=$(echo "${{ github.ref }}" | sed -e 's/^refs\/tags\/v//')
20
+
21
+ # Update the package.json version
22
+ npm version "$version"
23
24
- name: Setup Node.js
25
uses: actions/setup-node@v2
26
with:
0 commit comments