mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
* Migrate to ESM * just use `require.resolve` * reuse setup action * checkout PR head for a sec * ls things * try a thing * the dirname had a trailing whitespace, lol
28 lines
533 B
YAML
28 lines
533 B
YAML
name: Version or Publish
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
jobs:
|
|
changesets:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: ./.github/actions/ci-setup
|
|
|
|
- name: Build
|
|
run: yarn build
|
|
|
|
- name: Create Release Pull Request or Publish
|
|
id: changesets
|
|
uses: ./
|
|
with:
|
|
version: yarn bump
|
|
publish: yarn release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|