Skip to content

Commit

Permalink
fix: npm registry for publish github action (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
yarema184 authored Mar 7, 2024
1 parent 2eb9c3a commit ec5581a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
- name: Corepack enable
run: corepack enable
- name: Use pnpm@latest
Expand All @@ -23,7 +24,7 @@ jobs:
run: pnpm i
- name: Build packages
run: pnpm run build
- name: Setting up private repository npm access
run: echo "//registry.npmjs.org/:_authToken=$secrets.NPM_TOKEN" > .npmrc
- name: Publish packages
run: pnpm run publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit ec5581a

Please sign in to comment.