Skip to content

Commit 7951075

Browse files
committed
ci: remove pnpm-version input and add npm auth
1 parent c4c8080 commit 7951075

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/actions/setup-pnpm/action.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ inputs:
77
required: true
88
default: "22"
99

10-
pnpm-version:
11-
description: "PNPM version"
12-
required: false
13-
default: "latest"
14-
1510
npm-token:
1611
description: "NPM token"
1712
required: false
@@ -30,6 +25,14 @@ runs:
3025
node-version: ${{ inputs.node-version }}
3126
cache: 'pnpm'
3227
cache-dependency-path: '**/pnpm-lock.yaml'
28+
registry-url: 'https://registry.npmjs.org'
29+
always-auth: true
30+
31+
- name: Configure npm authentication
32+
if: ${{ inputs.npm-token != '' }}
33+
shell: bash
34+
run: |
35+
echo "//registry.npmjs.org/:_authToken=${{ inputs.npm-token }}" >> ~/.npmrc
3336
3437
# - name: Get pnpm store directory
3538
# shell: bash

0 commit comments

Comments
 (0)