We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4c8080 commit 7951075Copy full SHA for 7951075
.github/actions/setup-pnpm/action.yml
@@ -7,11 +7,6 @@ inputs:
7
required: true
8
default: "22"
9
10
- pnpm-version:
11
- description: "PNPM version"
12
- required: false
13
- default: "latest"
14
-
15
npm-token:
16
description: "NPM token"
17
required: false
@@ -30,6 +25,14 @@ runs:
30
25
node-version: ${{ inputs.node-version }}
31
26
cache: 'pnpm'
32
27
cache-dependency-path: '**/pnpm-lock.yaml'
28
+ registry-url: 'https://registry.npmjs.org'
29
+ always-auth: true
+
+ - name: Configure npm authentication
+ if: ${{ inputs.npm-token != '' }}
33
+ shell: bash
34
+ run: |
35
+ echo "//registry.npmjs.org/:_authToken=${{ inputs.npm-token }}" >> ~/.npmrc
36
37
# - name: Get pnpm store directory
38
# shell: bash
0 commit comments