Skip to content

Commit

Permalink
chore: add branch for next tag version
Browse files Browse the repository at this point in the history
  • Loading branch information
hollandjg committed Feb 1, 2023
1 parent f236fab commit 38ba7b2
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Node.js Package

on:
release:
types: [created]
types: [ published ]

jobs:
build-test-publish:
Expand All @@ -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
Expand Down

0 comments on commit 38ba7b2

Please sign in to comment.