Skip to content

Commit

Permalink
Update npm-publish-github-packages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jashlu authored May 25, 2023
1 parent b945ee1 commit c3ad3e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
with:
cache: 'yarn'
node-version: 18
registry-url: 'https://npm.pkg.github.com'
scope: '@thepolicylab-projectportals'
- run: yarn install --immutable
- run: yarn test
- name: Update version numbers
Expand All @@ -37,12 +39,12 @@ jobs:
yarn workspace "@thepolicylab-projectportals/gatsby-theme-project-portal" npm publish --tag next
yarn workspace "@thepolicylab-projectportals/project-portal-content-netlify" npm publish --tag next
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_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
yarn workspace "@thepolicylab-projectportals/project-portal-content-netlify" npm publish
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c3ad3e9

Please sign in to comment.