Skip to content

Commit

Permalink
Update npm-publish-npmjs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jashlu authored May 25, 2023
1 parent a25e18d commit 2fc1255
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/npm-publish-npmjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit 2fc1255

Please sign in to comment.