Skip to content

Commit

Permalink
chore: remove 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 5552f51 commit 600c9cb
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ jobs:
packages: write

steps:
- name: Echo event
run: |
echo "prerelease: " ${{ github.event.isPrerelease }}
echo "latest: " ${{ github.event.isLatest }}
echo "event: " ${{ toJSON(github.event) }}
# - name: Echo event
# run: |
# ${{ toJSON(github.event) }}

- uses: actions/checkout@v3
with:
Expand All @@ -36,22 +34,16 @@ 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: " ${{ toJSON(github.event) }}
- name: Pre-release packages
if: ${{ github.event.isPrerelease == true }}
if: ${{ github.event.prerelease }}
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.isLatest == true }}
if: ${{ !github.event.prerelease }}
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 600c9cb

Please sign in to comment.