From c9778f7a9c0c32d8fc565605b253829d72207329 Mon Sep 17 00:00:00 2001 From: Raul Lugo Date: Thu, 26 Dec 2024 18:21:44 +0100 Subject: [PATCH] fix: setup npmrc before publishing --- .github/workflows/release.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 535a9f4..bb5fff5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -47,10 +47,11 @@ jobs: - name: Build NPM Package run: deno task build:npm + - name: Setup .npmrc + run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc + # 6. Publish to NPM - name: Publish to NPM - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | cd ${{ env.DIST_FOLDER }} npm publish --access public