You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/release.yml
+13-4Lines changed: 13 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -43,15 +43,24 @@ jobs:
43
43
- run: yarn build
44
44
env:
45
45
NODE_ENV: 'production'
46
-
# Configure registry for GitHub Packages
46
+
# Configure registry for GitHub Packages using local .npmrc to avoid npm global config corruption
47
47
- run: rm ./.npmrc
48
-
- run: npm config set '//npm.pkg.github.com/:_authToken' $GH_TOKEN
48
+
- run: |
49
+
cat > .npmrc << 'EOF'
50
+
//npm.pkg.github.com/:_authToken=${GH_TOKEN}
51
+
@typeform:registry=https://npm.pkg.github.com/
52
+
EOF
49
53
env:
50
54
GH_TOKEN: ${{ secrets.GH_TOKEN }}
51
-
- run: npm config set @typeform:registry https://npm.pkg.github.com/
52
55
- run: yarn add -W @typeform/jarvis
53
56
- run: git checkout HEAD -- package.json # do not save jarvis dependency to package.json because it is private (the file is committed by semantic-release to bump version)
0 commit comments