From 689c148ddf3db582117eadef9f1252628f210a9e Mon Sep 17 00:00:00 2001 From: Wayner Barrios Date: Mon, 17 Aug 2026 14:11:17 -0500 Subject: [PATCH] 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. --- .github/workflows/publish-github-package.yml | 2 +- tests/github-packages.test.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-github-package.yml b/.github/workflows/publish-github-package.yml index 24c0276..db46775 100644 --- a/.github/workflows/publish-github-package.yml +++ b/.github/workflows/publish-github-package.yml @@ -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 }} diff --git a/tests/github-packages.test.mjs b/tests/github-packages.test.mjs index eddda12..fb9d943 100644 --- a/tests/github-packages.test.mjs +++ b/tests/github-packages.test.mjs @@ -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 \}\}/); });