Skip to content

Commit e1ebf9e

Browse files
committed
fix(ci): skip prepublishOnly script for GitHub Packages publish
Add --ignore-scripts flag to GitHub Packages publish step to prevent prepublishOnly from running twice. The script already runs during npm publish, so we can reuse the built artifacts for GitHub Packages. This fixes the issue where GitHub Packages publish was failing because prepublishOnly was trying to use the npm registry configuration instead of the GitHub Packages registry.
1 parent 159dd89 commit e1ebf9e

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed
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+
Fix GitHub Packages publish by skipping prepublishOnly script. The publish workflow now uses --ignore-scripts flag to prevent duplicate builds and avoid registry configuration conflicts.

.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 --registry=https://npm.pkg.github.com
67+
run: npm publish --registry=https://npm.pkg.github.com --ignore-scripts
6868
env:
6969
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"license": "MIT",
2626
"repository": {
2727
"type": "git",
28-
"url": "https://github.com/taskade/temporal-parser.git"
28+
"url": "git+https://github.com/taskade/temporal-parser.git"
2929
},
3030
"publishConfig": {
3131
"access": "public",

0 commit comments

Comments
 (0)