Skip to content

Commit e2c04be

Browse files
DevRohit06claude
andcommitted
fix: use block scalar in publish workflow to fix YAML syntax error
The inline `{ registry: ... }` was parsed as a YAML flow mapping instead of literal text, causing a workflow validation failure on line 50. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent cef20d4 commit e2c04be

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/npm-publish.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ jobs:
4343
registry-url: https://npm.pkg.github.com/
4444
- run: npm ci
4545
- name: Patch scope for GitHub Packages
46-
run: node -e "
47-
const fs = require('fs');
48-
const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'));
49-
pkg.name = '@lito-docs/cli';
50-
pkg.publishConfig = { registry: 'https://npm.pkg.github.com' };
51-
fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2));
46+
run: |
47+
node -e "
48+
const fs = require('fs');
49+
const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'));
50+
pkg.name = '@lito-docs/cli';
51+
pkg.publishConfig = { registry: 'https://npm.pkg.github.com' };
52+
fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2));
5253
"
5354
- run: npm publish
5455
env:

0 commit comments

Comments
 (0)