Skip to content

Commit e632892

Browse files
committed
ci: Ensure we have github packages setup
1 parent fec1aa0 commit e632892

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ jobs:
3838
run: npm run build
3939
working-directory: tools/nevermore-template-helpers
4040

41+
- name: Setup npm for GitHub Packages
42+
run: |
43+
echo -e "\n//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" >> .npmrc
44+
echo -e "\n//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" >> ~/.npmrc
45+
echo -e "\n//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
46+
echo -e "\n//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
50+
4151
- name: Run `npm install --no-package-lock` on nevermore-cli
4252
run: npm install --no-package-lock
4353
working-directory: tools/nevermore-cli

0 commit comments

Comments
 (0)