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 a486a98 commit 77ce326Copy full SHA for 77ce326
.github/workflows/publish.yml
@@ -21,6 +21,15 @@ jobs:
21
- name: Set up Bun
22
uses: oven-sh/setup-bun@v2
23
24
+ - name: Update version in package.json to match release tag
25
+ run: |
26
+ RELEASE_TAG=${GITHUB_REF#refs/tags/}
27
+ jq --arg tag "$RELEASE_TAG" '.version = $tag' package.json > package.json.tmp && mv package.json.tmp package.json
28
+ git config user.name "github-actions"
29
+ git config user.email "[email protected]"
30
+ git commit -am "Update version to match release tag $RELEASE_TAG"
31
+ git push
32
+
33
- name: Install dependencies
34
run: bun i
35
0 commit comments