From a37bd8957be6ddc46c99e8ace28efde7433af3fa Mon Sep 17 00:00:00 2001 From: Leo Ribeiro Date: Fri, 15 Mar 2024 16:55:42 -0400 Subject: [PATCH 1/3] Fix NPM Token Auth Issue --- .github/workflows/alpha-npm.yml | 4 ++++ .github/workflows/release-npm.yml | 4 ++++ .gitignore | 5 ++++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/alpha-npm.yml b/.github/workflows/alpha-npm.yml index 6bd26dd50..01921c2ba 100644 --- a/.github/workflows/alpha-npm.yml +++ b/.github/workflows/alpha-npm.yml @@ -33,6 +33,10 @@ jobs: with: cache: "true" + - name: Store NPM Registry Settings to .npmrc + run: | + echo -e "//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}" > ~/.npmrc + # Note - this is not required but it gives a clean failure prior to attempting a release if # the GH workflow runner is not authenticated with NPMjs.com - name: Verify NPM token is authenticated with NPMjs.com diff --git a/.github/workflows/release-npm.yml b/.github/workflows/release-npm.yml index 038d583c3..60e9dc026 100644 --- a/.github/workflows/release-npm.yml +++ b/.github/workflows/release-npm.yml @@ -46,6 +46,10 @@ jobs: with: cache: "true" + - name: Store NPM Registry Settings to .npmrc + run: | + echo -e "//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}" > ~/.npmrc + - name: Install semver utility run: pnpm install -g semver@7.5.1 diff --git a/.gitignore b/.gitignore index 7722c51c7..4add76ec7 100644 --- a/.gitignore +++ b/.gitignore @@ -164,4 +164,7 @@ dist results.xml .tbdocs -temp \ No newline at end of file +temp + +# Hermit build output +.hermit From 9e5349bfe9ca8e0f36b6eeddee3472ecb650b9bf Mon Sep 17 00:00:00 2001 From: Frank Hinek Date: Fri, 15 Mar 2024 17:24:33 -0400 Subject: [PATCH 2/3] Troubleshoot git status Signed-off-by: Frank Hinek --- .github/workflows/alpha-npm.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/alpha-npm.yml b/.github/workflows/alpha-npm.yml index 01921c2ba..3dd894f2e 100644 --- a/.github/workflows/alpha-npm.yml +++ b/.github/workflows/alpha-npm.yml @@ -60,6 +60,9 @@ jobs: - name: Build all workspace packages run: pnpm --recursive --stream build + - name: Troubleshoot + run: git status + - name: Publish selected @web5/* packages env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} From 98fc5375b5961a56378f7e9ed7264328c039ef01 Mon Sep 17 00:00:00 2001 From: Frank Hinek Date: Fri, 15 Mar 2024 17:30:59 -0400 Subject: [PATCH 3/3] Disable pnpm publish git checks Signed-off-by: Frank Hinek --- .github/workflows/alpha-npm.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/alpha-npm.yml b/.github/workflows/alpha-npm.yml index 3dd894f2e..fcf89e117 100644 --- a/.github/workflows/alpha-npm.yml +++ b/.github/workflows/alpha-npm.yml @@ -59,9 +59,6 @@ jobs: - name: Build all workspace packages run: pnpm --recursive --stream build - - - name: Troubleshoot - run: git status - name: Publish selected @web5/* packages env: @@ -69,7 +66,7 @@ jobs: run: | for package in $PACKAGES; do cd packages/$package - pnpm publish --tag alpha --access public --provenance + pnpm publish --tag alpha --access public --provenance --no-git-checks cd ../.. done shell: bash