Configure NPM token in build workflow

This commit is contained in:
Stela Augustinova
2026-04-09 14:50:11 +02:00
parent a533858804
commit b0dade9da3

View File

@@ -20,6 +20,8 @@ permissions:
jobs:
build:
runs-on: ${{ matrix.os }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
strategy:
matrix:
@@ -38,12 +40,7 @@ jobs:
with:
node-version: 22.x
cache: yarn
- name: Configure NPM token
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
registry-url: 'https://registry.npmjs.org'
- name: yarn install
run: |