mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
* Use node16 in actions * fixup! Use node16 in actions * remove `engines.npm` Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
36 lines
701 B
YAML
36 lines
701 B
YAML
name: Version or Publish
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
jobs:
|
|
changesets:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js 16
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 16.x
|
|
|
|
- name: Install Dependencies
|
|
run: yarn --frozen-lockfile
|
|
|
|
- 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 }}
|