From d66d4715ea40887bfe899898b0611ffe75888b3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gaul?= Date: Mon, 5 Apr 2021 12:02:30 +0200 Subject: [PATCH] provide token with checkout --- .github/workflows/npm-publish.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/npm-publish.yaml b/.github/workflows/npm-publish.yaml index 2c96905..9539ecf 100644 --- a/.github/workflows/npm-publish.yaml +++ b/.github/workflows/npm-publish.yaml @@ -14,6 +14,7 @@ jobs: - uses: actions/checkout@v2 with: ref: ${{ github.event.release.target_commitish }} + token: ${{ secrets.GH_RELEASE_TOKEN }} - name: Setup node uses: actions/setup-node@v1 with: @@ -29,5 +30,3 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }} - run: git push - env: - GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}