From 600c9cb7073db7331b56909f2b14a4d3a1dbb50a Mon Sep 17 00:00:00 2001 From: John Gerrard Holland Date: Wed, 1 Feb 2023 18:31:48 -0500 Subject: [PATCH] chore: remove bugfixing for if statements --- .../workflows/npm-publish-github-packages.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index 84352ffb4..418981ac1 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -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: @@ -36,14 +34,8 @@ 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 @@ -51,7 +43,7 @@ jobs: 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