From 03be7aba114f2531e2865c940c246e273d5f6a69 Mon Sep 17 00:00:00 2001 From: shuta13 Date: Thu, 18 Apr 2024 10:59:11 +0900 Subject: [PATCH] fix: npm token --- .github/workflows/publish.yaml | 3 +-- .npmrc | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 4e583ff..cd5081b 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -10,6 +10,7 @@ on: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} jobs: publish: @@ -43,5 +44,3 @@ jobs: with: version: ${{ github.event.inputs.tag }} publish: npm run release - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.npmrc b/.npmrc index b6f27f1..26b0cfb 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,2 @@ engine-strict=true +//registry.npmjs.org/:_authToken=${process.env.NPM_TOKEN}