Skip to content

Commit be8913c

Browse files
use env var for npm registry authentication
1 parent 8640765 commit be8913c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/gh-pages.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@ jobs:
2626
node-version: 22
2727
cache: 'npm'
2828
cache-dependency-path: package-lock.json
29+
registry-url: 'https://npm.pkg.github.com/'
2930
- name: Install Tools
3031
run: npm install -g postcss-cli autoprefixer
3132
- name: NPM install
3233
run: |
3334
npm config set "@skymatic:registry" https://npm.pkg.github.com/
34-
npm config set '//npm.pkg.github.com/:_authToken' "${{ secrets.FONTAWESOME_AUTH_TOKEN }}"
35-
npm install
35+
npm ci --ignore-scripts
36+
env:
37+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3638
- name: Build
3739
run: hugo
3840
- name: Upload artifact

0 commit comments

Comments
 (0)