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:
parent
67f646098e
commit
8f7bf7f020
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user