CI: add token auth to NPM registry

This commit is contained in:
phil 2024-12-06 06:15:06 +01:00
parent b726fb1daa
commit d72ea0da6f

View file

@ -61,6 +61,11 @@ jobs:
- name: Build package (transpile ts => js)
run: ng build
- name: Set registry token for pnpm"
env:
LOCAL_NPM_TOKEN: ${{ secrets.LOCAL_NPM_TOKEN }}
run: pnpm set "//code.philo.ydns.eu/api/packages/philorg/npm/:_authToken=${LOCAL_NPM_TOKEN}"
- name: Publish
if: fromJSON(steps.builder.outputs.run)
run: pnpm publish --no-git-checks