We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dd6e0d commit 7c5d738Copy full SHA for 7c5d738
.github/workflows/publish.yml
@@ -37,6 +37,12 @@ jobs:
37
cache: yarn
38
registry-url: 'https://registry.npmjs.org'
39
- run: yarn install --frozen-lockfile
40
+ # We can't install anything globally with the set permissions for the default version of npm that setup-node comes with.
41
+ # So, we need to install it in the user space where we do have file permissions.
42
+ - name: Set npm prefix to user space
43
+ run: npm config set prefix "${HOME}/.npm-global"
44
+ - name: Update PATH to use NPM from user space
45
+ run: echo "${HOME}/.npm-global/bin" >> $GITHUB_PATH
46
# Ensure npm 11.5.1 or later is installed - this is needed for OIDC support
47
- name: Update npm
48
run: npm install -g npm@latest
0 commit comments