From 38ba7b28d9d31dbd7c942bbac697ed70b1aba378 Mon Sep 17 00:00:00 2001 From: John Gerrard Holland Date: Wed, 1 Feb 2023 18:09:33 -0500 Subject: [PATCH] chore: add branch for next tag version --- .github/workflows/npm-publish-github-packages.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index f472ddbb6..0c0c32d66 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -5,7 +5,7 @@ name: Node.js Package on: release: - types: [created] + types: [ published ] jobs: build-test-publish: @@ -29,7 +29,17 @@ jobs: run: | 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: Publish packages + + - name: Pre-release packages + if: ${{ github.event.release.isLatest }} + 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 }} run: | yarn workspace "@thepolicylab-projectportals/gatsby-theme-project-portal" npm publish yarn workspace "@thepolicylab-projectportals/project-portal-content-netlify" npm publish