1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-01-17 21:49:20 +01: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:
Claudéric Demers 2021-05-26 10:31:35 -04:00 committed by GitHub
parent 67f646098e
commit 8f7bf7f020
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,14 @@ on:
jobs:
release:
name: ${{ matrix.channel }}
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
channel:
- latest
- dev
steps:
- name: Checkout repo
@ -29,6 +36,7 @@ jobs:
# https://github.com/changesets/action
- name: Create release pull request or Publish to npm
if: matrix.channel == 'latest'
uses: changesets/action@master
with:
publish: yarn changeset publish
@ -39,6 +47,7 @@ jobs:
# https://github.com/atlassian/changesets/blob/master/docs/snapshot-releases.md
- name: Release to @dev channel
if: matrix.channel == 'dev'
run: |
yarn changeset version --snapshot
yarn changeset publish --tag dev