From 409364be5bc29bf336de8ebb4647ce6b32a8c7ba Mon Sep 17 00:00:00 2001 From: Robin Gagnon Date: Thu, 19 Dec 2024 16:32:53 -0500 Subject: [PATCH] build: Authenticate yarn publishing using `.yarnrc.yml` (#156) --- .github/workflows/npm_publish.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm_publish.yml b/.github/workflows/npm_publish.yml index 49cb44e..16c2ae2 100644 --- a/.github/workflows/npm_publish.yml +++ b/.github/workflows/npm_publish.yml @@ -22,7 +22,11 @@ jobs: - name: Install dependencies run: yarn install --immutable + - name: Authentication + run: | + echo npmAuthToken: "$NODE_AUTH_TOKEN" >> ./.yarnrc.yml + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Check package versions and publish run: yarn publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}