From 2fc12558a314d7faeafe4eab6d7fdc2d02845bef Mon Sep 17 00:00:00 2001 From: Josh Lu Date: Thu, 25 May 2023 14:43:47 -0400 Subject: [PATCH] Update npm-publish-npmjs.yml --- .github/workflows/npm-publish-npmjs.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/npm-publish-npmjs.yml b/.github/workflows/npm-publish-npmjs.yml index f160eadad..f339728b2 100644 --- a/.github/workflows/npm-publish-npmjs.yml +++ b/.github/workflows/npm-publish-npmjs.yml @@ -20,11 +20,11 @@ jobs: - name: Setup .yarnrc.yml run: | - yarn config set npmScopes.my-org.npmRegistryServer "https://npm.pkg.github.com" - yarn config set npmScopes.my-org.npmAlwaysAuth true - yarn config set npmScopes.my-org.npmAuthToken $NPM_AUTH_TOKEN + yarn config set npmScopes.thepolicylab-projectportals.npmRegistryServer "https://registry.npmjs.org" + yarn config set npmScopes.thepolicylab-projectportals.npmAlwaysAuth true + yarn config set npmScopes.thepolicylab-projectportals.npmAuthToken $NPM_AUTH_TOKEN env: - NPM_AUTH_TOKEN: ${{ secrets.YARN_TOKEN }} + NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - run: cat ".npmrc" - run: yarn install --immutable @@ -39,13 +39,9 @@ jobs: run: | yarn workspace "@thepolicylab-projectportals/gatsby-theme-project-portal" npm publish --tag next --access public yarn workspace "@thepolicylab-projectportals/project-portal-content-netlify" npm publish --tag next --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Release packages if: ${{ github.event_name == 'release' && github.event.release.prerelease == false }} run: | yarn workspace "@thepolicylab-projectportals/gatsby-theme-project-portal" npm publish --access public yarn workspace "@thepolicylab-projectportals/project-portal-content-netlify" npm publish --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}