Skip to content

Commit

Permalink
update registry auth
Browse files Browse the repository at this point in the history
  • Loading branch information
scottrepreneur authored Dec 21, 2023
1 parent 726ba8a commit 3e912df
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 3e912df

Please sign in to comment.