mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-09 08:46:35 +02:00
Revert to using matrix for release workflow (#4294)
Setting max parallel number of jobs to 1. The `yarn changeset publish` command deletes files in the .changesets folder, so it's not safe to run two changeset steps in the same job.
This commit is contained in:
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@@ -7,7 +7,14 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
|
name: ${{ matrix.channel }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
max-parallel: 1
|
||||||
|
matrix:
|
||||||
|
channel:
|
||||||
|
- latest
|
||||||
|
- dev
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
@@ -29,6 +36,7 @@ jobs:
|
|||||||
|
|
||||||
# https://github.com/changesets/action
|
# https://github.com/changesets/action
|
||||||
- name: Create release pull request or Publish to npm
|
- name: Create release pull request or Publish to npm
|
||||||
|
if: matrix.channel == 'latest'
|
||||||
uses: changesets/action@master
|
uses: changesets/action@master
|
||||||
with:
|
with:
|
||||||
publish: yarn changeset publish
|
publish: yarn changeset publish
|
||||||
@@ -39,6 +47,7 @@ jobs:
|
|||||||
|
|
||||||
# https://github.com/atlassian/changesets/blob/master/docs/snapshot-releases.md
|
# https://github.com/atlassian/changesets/blob/master/docs/snapshot-releases.md
|
||||||
- name: Release to @dev channel
|
- name: Release to @dev channel
|
||||||
|
if: matrix.channel == 'dev'
|
||||||
run: |
|
run: |
|
||||||
yarn changeset version --snapshot
|
yarn changeset version --snapshot
|
||||||
yarn changeset publish --tag dev
|
yarn changeset publish --tag dev
|
||||||
|
Reference in New Issue
Block a user