Skip to content

Commit 5165f82

Browse files
authored
build(ci): explicitly set GitHub Packages registry in publish step (#3)
The GitHub Packages publish step was incorrectly attempting to publish to npm registry instead of GitHub Packages. This adds the explicit --registry flag to ensure it publishes to the correct registry. Without this flag, the setup-node registry configuration was being overridden by the prepublishOnly script, causing the publish to target npm instead of GitHub Packages.
1 parent 097f297 commit 5165f82

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/long-drinks-grin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@taskade/temporal-parser": patch
3+
---
4+
5+
build(ci): Fix GitHub Packages publish workflow to use correct registry. Previously, the GitHub Packages publish step was attempting to publish to npm registry instead of GitHub Packages registry. This adds the explicit `--registry` flag to ensure packages are published to the correct location.

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ jobs:
6464

6565
- name: Publish to GitHub Packages
6666
if: steps.changesets.outputs.published == 'true'
67-
run: npm publish
67+
run: npm publish --registry=https://npm.pkg.github.com
6868
env:
6969
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)