From 3e912df483f7d9d61a87c45fca5560315453868b Mon Sep 17 00:00:00 2001 From: scottrepreneur Date: Thu, 21 Dec 2023 10:25:32 -0600 Subject: [PATCH] update registry auth --- .github/workflows/publish.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 141b92f..3f0f384 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,12 +10,19 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: pnpm/action-setup@v2 # Use PNPM with: version: 8 + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v3 + with: + node-version: '18.x' + registry-url: 'https://registry.npmjs.org' + - run: npm ci + - name: Install Dependencies run: pnpm install @@ -27,7 +34,7 @@ jobs: - name: Publish NPM Package run: npm publish --non-interactive --access public env: - NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} - name: Update GH Pages uses: peaceiris/actions-gh-pages@v3