mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
* Switch to Changesets-based release process * Bump version * drop unused variable * Update .github/workflows/version-or-publish.yml Co-authored-by: Nicola Molinari <nicola.molinari@commercetools.com> * Push also to a release line branch when releasing * Change node version used in the version-or-publish workflow * Switch to using the local action Co-authored-by: Nicola Molinari <nicola.molinari@commercetools.com> * build the action before trying to use it the workflow * Add changeset and actually setup Changesets, lol Co-authored-by: Nicola Molinari <nicola.molinari@commercetools.com>
34 lines
648 B
YAML
34 lines
648 B
YAML
name: Version or Publish
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
changesets:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js 14
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 14.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 version
|
|
publish: yarn release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|