Skip to content

Commit e17e6d0

Browse files
s-JoLclaude
andcommitted
fix: release workflow YAML syntax error
Use single-line node -e and single quotes to avoid YAML parsing issues. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0b68cdc commit e17e6d0

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,17 @@ jobs:
5050
5151
- name: Update version in package.json
5252
run: |
53-
node -e "
54-
const fs = require('fs');
55-
const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'));
56-
pkg.version = '${{ inputs.version }}';
57-
fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2) + '\n');
58-
"
53+
VERSION=${{ inputs.version }}
54+
node -e "var fs=require('fs'),p=JSON.parse(fs.readFileSync('package.json','utf8'));p.version='${VERSION}';fs.writeFileSync('package.json',JSON.stringify(p,null,2)+String.fromCharCode(10))"
5955
6056
- name: Commit version bump
61-
run: git commit -am "release: v${{ inputs.version }}"
57+
run: git commit -am 'release: v${{ inputs.version }}'
6258

6359
- name: Create tag
64-
run: git tag "v${{ inputs.version }}"
60+
run: git tag 'v${{ inputs.version }}'
6561

6662
- name: Push commit to main
6763
run: git push origin main
6864

6965
- name: Push tag
70-
run: git push origin "v${{ inputs.version }}"
66+
run: git push origin 'v${{ inputs.version }}'

0 commit comments

Comments
 (0)