From a4b24b87b2f292b16451e4aeae0df7467fe41362 Mon Sep 17 00:00:00 2001 From: Leangseu Kim <83240113+leangseu-edx@users.noreply.github.com> Date: Thu, 16 May 2024 10:59:15 -0400 Subject: [PATCH] chore: add npm authentication to manual release --- .github/workflows/manual-release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/manual-release.yml b/.github/workflows/manual-release.yml index 9c393f8..a07f777 100644 --- a/.github/workflows/manual-release.yml +++ b/.github/workflows/manual-release.yml @@ -33,6 +33,12 @@ jobs: - name: Create Build run: npm run build + # NPM expects to be authenticated for publishing. This step will fail CI if NPM is not authenticated + - name: Check NPM authentication + run: | + echo "//registry.npmjs.org/:_authToken=${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}" >> .npmrc + npm whoami + - name: Release env: GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}