Publish verified release artifacts without rerunning lifecycle scripts

Rely on the required release CI before uploading to GitHub Packages so the immutable version 0.5.0 tag can be mirrored without inheriting registry configuration inside package tests.
This commit is contained in:
Wayner Barrios
2026-08-17 14:11:17 -05:00
parent e8b5d437bf
commit 689c148ddf
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -46,6 +46,6 @@ jobs:
}
'
- name: Publish release to GitHub Packages
run: npm publish --registry=https://npm.pkg.github.com --access public
run: npm publish --ignore-scripts --registry=https://npm.pkg.github.com --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+1 -1
View File
@@ -21,7 +21,7 @@ test("GitHub Packages workflow publishes an exact release tag with least privile
assert.match(WORKFLOW, /scope: "@waybarrios"/);
assert.match(
WORKFLOW,
/npm publish --registry=https:\/\/npm\.pkg\.github\.com --access public/,
/npm publish --ignore-scripts --registry=https:\/\/npm\.pkg\.github\.com --access public/,
);
assert.match(WORKFLOW, /NODE_AUTH_TOKEN: \$\{\{ secrets\.GITHUB_TOKEN \}\}/);
});