ci: Release v19 (#3988)

* Bump to 19.0.0, Add conditions for CI release

* Use next tag instead
This commit is contained in:
Fleny
2024-11-17 11:25:37 -06:00
committed by GitHub
parent aa46f2fb52
commit 1e8873b3cb
11 changed files with 59 additions and 55 deletions
+5 -1
View File
@@ -7,6 +7,8 @@ on:
paths:
- packages/**
- .github/**
release:
types: [published]
workflow_dispatch:
jobs:
@@ -45,9 +47,11 @@ jobs:
- name: build Package
run: yarn release-build --cache-dir=".turbo" --filter=./packages/${{ matrix.package }}
- name: Bump Package Version
if: ${{ github.event_name != 'release' && github.event.action != 'published' }}
run: node ./scripts/bumpVersionByCommit.js ${{ matrix.package }}
- run: npm publish --access public
# If the action is running from a release use the latest tag, otherwise use the next tag
- run: npm publish --tag ${{ github.event_name == 'release' && github.event.action == 'published' && 'latest' || 'next' }} --access public --provenance
working-directory: packages/${{ matrix.package }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}