1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-20 06:01:24 +02:00

add first stab at release workflow

This commit is contained in:
Ian Storm Taylor
2021-03-29 17:07:39 -04:00
parent b5cb9ee6db
commit 1ecc472cc7
5 changed files with 33 additions and 13 deletions

View File

@@ -1,7 +1,11 @@
name: actions
on: [push, pull_request]
name: Test
on:
- push
- pull_request
jobs:
ci:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

View File

@@ -1,9 +1,9 @@
# https://github.com/marketplace/actions/automatic-rebase (https://github.com/cirrus-actions/rebase)
name: Automatic Rebase
name: Rebase
on:
issue_comment:
types:
types:
- created
env:
@@ -11,12 +11,10 @@ env:
jobs:
rebase:
name: Rebase
if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase')
runs-on: ubuntu-latest
if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase')
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
- name: Automatic Rebase
uses: cirrus-actions/rebase@1.3.1
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: cirrus-actions/rebase@1.3.1

17
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: Release
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: yarn && yarn internal:release:next

View File

@@ -1,5 +1,5 @@
{
"lerna": "2.7.1",
"lerna": "3.19.0",
"version": "0.61.0",
"npmClient": "yarn",
"useWorkspaces": true

View File

@@ -23,6 +23,7 @@
"release:latest": "yarn prerelease && lerna publish --force-publish",
"release:next": "yarn prerelease && lerna publish --dist-tag next --force-publish",
"release:experimental": "yarn prerelease && lerna publish --dist-tag experimental",
"internal:release:next": "yarn prerelease && lerna publish --dist-tag next --force-publish --conventional-commits",
"serve": "cd ./site && next",
"start": "npm-run-all --parallel --print-label watch serve",
"test": "mocha --require ./config/babel/register.cjs ./packages/*/test/index.js",