Skip to content

Commit 6e84acc

Browse files
yokotasoclaude
andcommitted
fix: override package name to @nota scope and publish as private for GPR
GitHub Packages requires the npm scope to match the repository owner. Override @NotaInc@nota at publish time and remove --access public to publish as a private package. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 96f2f5a commit 6e84acc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish-gpr.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
- name: Set version
2424
if: ${{ inputs.version != '' }}
2525
run: npm version "${{ inputs.version }}" --no-git-tag-version -w pkgs/typed-api-spec
26-
- run: npm publish -w pkgs/typed-api-spec --access public --registry https://npm.pkg.github.com
26+
- name: Override package name for GPR
27+
run: jq '.name = "@nota/typed-api-spec"' pkgs/typed-api-spec/package.json > tmp.json && mv tmp.json pkgs/typed-api-spec/package.json
28+
- run: npm publish -w pkgs/typed-api-spec --registry https://npm.pkg.github.com
2729
env:
2830
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)