File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments