Skip to content

Commit

Permalink
chore: add bugfixing for if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
hollandjg committed Feb 1, 2023
1 parent 7618aa3 commit 647de39
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,22 @@ jobs:
yarn workspace "@thepolicylab-projectportals/gatsby-theme-project-portal" version "${{ github.ref_name }}"
yarn workspace "@thepolicylab-projectportals/project-portal-content-netlify" version "${{ github.ref_name }}"
- name: Echo event
run: |
echo "prerelease: " ${{ github.event.isPrerelease }}
echo "latest: " ${{ github.event.isLatest }}
echo "event: " ${{ github.event }}
- name: Pre-release packages
if: ${{ github.event.release.isPrerelease }}
if: ${{ github.event.isPrerelease }}
run: |
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 }}

- name: Release packages
if: ${{ github.event.release.isLatest }}
if: ${{ github.event.isLatest }}
run: |
yarn workspace "@thepolicylab-projectportals/gatsby-theme-project-portal" npm publish
yarn workspace "@thepolicylab-projectportals/project-portal-content-netlify" npm publish
Expand Down

0 comments on commit 647de39

Please sign in to comment.