From 7fa1c770d7e5dc1a753cd1ad818555c5ea8e6aa6 Mon Sep 17 00:00:00 2001 From: Robin Gagnon Date: Thu, 19 Dec 2024 16:21:59 -0500 Subject: [PATCH] build: Authenticate yarn publishing using `.yarnrc.yml` --- .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 }}