From 36a56fcec56b11fd387e1029d8d52e3719411fe3 Mon Sep 17 00:00:00 2001 From: Jose Manuel Palomares Date: Mon, 6 May 2024 20:42:50 +0200 Subject: [PATCH] feat: changing npm publish pipeline --- .github/workflows/_npm_publish.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/_npm_publish.yaml b/.github/workflows/_npm_publish.yaml index 16cc8b0..298e6ce 100644 --- a/.github/workflows/_npm_publish.yaml +++ b/.github/workflows/_npm_publish.yaml @@ -56,12 +56,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout current git repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of REPO_ACCESS_TOKEN fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository - name: Use Node.js with Github Packages as registry url - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ inputs.nodeVersion }} registry-url: https://npm.pkg.github.com @@ -69,7 +69,7 @@ jobs: - name: Install npm dependencies run: npm i env: - NPM_GITHUB_TOKEN: ${{ secrets.githubAuthToken }} + NODE_AUTH_TOKEN: ${{ secrets.githubAuthToken }} - if: inputs.buildBeforePublishing name: Run build run: npm run build