File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed
Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change 1111jobs :
1212 build :
1313 runs-on : ubuntu-latest
14+
15+ permissions :
16+ contents : read
17+ packages : read
1418
1519 steps :
1620 - name : Checkout code
@@ -20,14 +24,28 @@ jobs:
2024 uses : actions/setup-node@v4
2125 with :
2226 node-version : ' 23'
27+ registry-url : ' https://npm.pkg.github.com'
28+ scope : ' @modl-gg'
2329
24- - name : Install root dependencies
25- run : npm ci
30+ - name : Configure npm for GitHub Packages
31+ run : |
32+ rm .npmrc
33+ echo "@modl-gg:registry=https://npm.pkg.github.com" >> .npmrc
34+ echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
35+ env :
36+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2637
2738 - name : Install client dependencies
2839 run : |
2940 cd client
3041 npm ci
42+ env :
43+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44+
45+ - name : Install dependencies
46+ run : npm ci
47+ env :
48+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3149
3250 - name : Run build
33- run : npm run build
51+ run : npm run build
You can’t perform that action at this time.
0 commit comments