From d72ea0da6f21528eb2461ac98a618f047e5cec40 Mon Sep 17 00:00:00 2001 From: phil Date: Fri, 6 Dec 2024 06:15:06 +0100 Subject: [PATCH] CI: add token auth to NPM registry --- .forgejo/workflows/build.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 6042df4..2bbf384 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -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