Skip to content

Commit 46a2461

Browse files
committed
feat: Use pnpm config instead of npm config
1 parent edd96bb commit 46a2461

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

pnpm-install/action.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ runs:
3232
with:
3333
swap-size-gb: 10
3434

35-
- uses: pnpm/action-setup@v4.1.0
35+
- uses: pnpm/action-setup@v6.0.8
3636
name: Install pnpm
3737
with:
3838
run_install: false
@@ -46,14 +46,11 @@ runs:
4646
# install step below. Once that step finishes the env var is gone and
4747
# ~/.npmrc holds an unusable template, so later steps in the same job
4848
# cannot exfiltrate the token.
49-
#
50-
# `npm` is always available on the runner via setup-node and is used
51-
# here only because corepack-managed pnpm isn't on PATH at every step.
5249
- name: Configure GitHub npm registry auth
5350
if: inputs.github-registry-token != ''
5451
shell: bash
5552
run: |
56-
npm config set '//npm.pkg.github.com/:_authToken=${GITHUB_REGISTRY_TOKEN}'
53+
pnpm config set '//npm.pkg.github.com/:_authToken=${GITHUB_REGISTRY_TOKEN}'
5754
5855
- name: Expose pnpm config(s) through "$GITHUB_OUTPUT"
5956
id: pnpm-config

0 commit comments

Comments
 (0)