From 421aecff1adda91f9a5dd48edf0eba7cfde829d7 Mon Sep 17 00:00:00 2001 From: mt-yohei-koyama Date: Mon, 21 Jun 2021 11:43:08 +0900 Subject: [PATCH] fix: set an auth token to publish npm registry in .npmrc --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 59a6b6a..718e68d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,7 @@ jobs: with: node-version: 16 registry-url: https://registry.npmjs.org/ + - run: echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > ~/.npmrc - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}