Skip to content

Commit 59d5a4d

Browse files
committed
Revert "fix(ci): pass expanded auth token to Yarn's npmrc for GitHub Packages"
This reverts commit 6066de2.
1 parent 6066de2 commit 59d5a4d

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,11 @@ jobs:
2323
registry-url: 'https://npm.pkg.github.com/'
2424
scope: '@staffbase'
2525

26-
- name: Configure GitHub Packages auth for Yarn
27-
# actions/setup-node writes `${NODE_AUTH_TOKEN}` literally into the temp npmrc;
28-
# Yarn classic does NOT expand env-var placeholders from npmrc files (unlike npm).
29-
# Appending the already-expanded token to the same file that NPM_CONFIG_USERCONFIG
30-
# points to is the reliable fix.
31-
run: echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> "$NPM_CONFIG_USERCONFIG"
32-
env:
33-
NODE_AUTH_TOKEN: ${{ secrets.STAFFBOT_NPM_READ }}
34-
3526
- name: Install Yarn Dependencies
3627
working-directory: samples/weather-forecast
3728
run: yarn install --frozen-lockfile
29+
env:
30+
NODE_AUTH_TOKEN: ${{ secrets.STAFFBOT_NPM_READ }}
3831

3932
- name: Run Build
4033
working-directory: samples/weather-forecast

0 commit comments

Comments
 (0)