We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1b5afe commit d3ff442Copy full SHA for d3ff442
1 file changed
.github/workflows/release.yml
@@ -21,6 +21,10 @@ jobs:
21
with:
22
bun-version: "1.3.8"
23
24
+ - name: Set package version from tag
25
+ run: |
26
+ node -e "const fs=require('fs');const tag=process.env.GITHUB_REF_NAME||'';const version=tag.startsWith('v')?tag.slice(1):tag;if(!version){throw new Error('Missing tag version');}const path='package.json';const pkg=JSON.parse(fs.readFileSync(path,'utf8'));pkg.version=version;fs.writeFileSync(path,JSON.stringify(pkg,null,2)+'\n');"
27
+
28
- name: Install dependencies
29
run: bun install
30
0 commit comments