Skip to content

Commit

Permalink
chore: another fix...
Browse files Browse the repository at this point in the history
  • Loading branch information
hollandjg committed Feb 1, 2023
1 parent ea79cfb commit 8615d5c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ jobs:
packages: write

steps:
- name: Echo event
run: echo $ {{ toJSON(github.event) }}

- name: Pre-release packages check
if: ${{ github.event_name == 'release' && github.event.prerelease == true }}
run: echo "pre-release"

- name: Release packages
if: ${{ github.event_name == 'release' && github.event.prerelease == false }}
run: echo "release"

- uses: actions/checkout@v3
with:
Expand All @@ -32,20 +42,20 @@ jobs:
yarn workspace "@thepolicylab-projectportals/project-portal-content-netlify" version "${{ github.ref_name }}"
- name: Pre-release packages
if: github.event_name == 'release' && github.event.prerelease == true
if: ${{ github.event_name == 'release' && github.event.prerelease == true }}
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_name == 'release' && github.event.prerelease == false
if: $ {{ github.event_name == 'release' && github.event.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 }}

- name: Echo event
run: echo toJSON(github.event)
run: echo $ {{ toJSON(github.event) }}

0 comments on commit 8615d5c

Please sign in to comment.