Skip to content

Commit 1b663dc

Browse files
committed
ci: install dependencies from npm registry
1 parent 906d9ff commit 1b663dc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/build.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ jobs:
3131
with:
3232
node-version: 24
3333
cache: 'pnpm'
34-
registry-url: 'https://npm.pkg.github.com'
35-
scope: '@delta-comic'
3634

3735
- name: Install dependencies
3836
run: pnpm install --frozen-lockfile
@@ -62,7 +60,9 @@ jobs:
6260
if: steps.release-version.outputs.should_publish == 'true'
6361
env:
6462
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65-
run: pnpm publish --registry=https://npm.pkg.github.com --no-git-checks
63+
run: |
64+
echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
65+
pnpm publish --registry=https://npm.pkg.github.com --no-git-checks
6666
6767
- name: Create GitHub release
6868
if: steps.release-version.outputs.should_publish == 'true'

0 commit comments

Comments
 (0)