From 32c3c1d27e910c13b73ca4fb1ee1746c24d73694 Mon Sep 17 00:00:00 2001 From: Philip Harrison Date: Thu, 8 Dec 2022 10:48:24 +0000 Subject: [PATCH] Update npm auth env Use the env var `NODE_AUTH_TOKEN` as `actions/setup-node` will auto-magically read this env var in the created `.npmrc` file it creates. Ref: https://github.com/actions/setup-node/blob/d1b197b965eb46e1a1878caad41c4ab3efae133f/src/authutil.ts#L48 --- .github/workflows/github-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml index ce4eada2..6a43bc0e 100644 --- a/.github/workflows/github-release.yml +++ b/.github/workflows/github-release.yml @@ -53,4 +53,4 @@ jobs: - run: make build - run: npm publish --provenance --access public env: - NPM_TOKEN: ${{ secrets.NPM_WEBAUTHN_JSON_PUBLISH_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_WEBAUTHN_JSON_PUBLISH_TOKEN }}