Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit f7c9a37

Browse files
fix: setup-node to use registry-url
Otherwise it fails to authenticate `yarn` on github-hosted runners
1 parent f8aa311 commit f7c9a37

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

commands/setup-node/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
name: 'Set up Node.js and install deps/fetch cache'
2-
1+
name: setup-node
2+
description: Set up Node.js and install deps/fetch cache
33
runs:
44
using: "composite"
55
steps:
66
- uses: actions/setup-node@v3
7-
with: { node-version: '18' }
7+
with: { node-version: '18', registry-url: 'https://registry.npmjs.org' }
88
- uses: actions/cache@v3
99
with:
1010
path: 'node_modules'
1111
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
12-
- name: Yarn install deps from lockfile
12+
- run: yarn --frozen-lockfile
1313
shell: bash
14-
run: yarn --frozen-lockfile
14+

0 commit comments

Comments
 (0)