Skip to content

Commit

Permalink
fix: npm config added
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Krasnov committed Feb 25, 2024
1 parent 8bec3eb commit bd1a43c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .github/actions/install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@ runs:
path: node_modules
key: node-modules-${{ hashFiles('pnpm-lock.yaml') }}

- name: Set publishing config
- name: Set github config
run: pnpm config set '//npm.pkg.github.com/:_authToken' "${NODE_AUTH_TOKEN}"
shell: bash

- name: Set npm config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
shell: bash

- name: Install dependencies
if: steps.node-modules.cache-hit != 'true'
run: pnpm install --frozen-lockfile
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,4 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- run: pnpm publish --no-git-checks

0 comments on commit bd1a43c

Please sign in to comment.