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