mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-20 14:11:35 +02:00
add first stab at release workflow
This commit is contained in:
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -1,7 +1,11 @@
|
|||||||
name: actions
|
name: Test
|
||||||
on: [push, pull_request]
|
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
16
.github/workflows/rebase.yml
vendored
16
.github/workflows/rebase.yml
vendored
@@ -1,9 +1,9 @@
|
|||||||
# https://github.com/marketplace/actions/automatic-rebase (https://github.com/cirrus-actions/rebase)
|
# https://github.com/marketplace/actions/automatic-rebase (https://github.com/cirrus-actions/rebase)
|
||||||
name: Automatic Rebase
|
name: Rebase
|
||||||
|
|
||||||
on:
|
on:
|
||||||
issue_comment:
|
issue_comment:
|
||||||
types:
|
types:
|
||||||
- created
|
- created
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@@ -11,12 +11,10 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
rebase:
|
rebase:
|
||||||
name: Rebase
|
|
||||||
if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase')
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase')
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Automatic Rebase
|
- uses: cirrus-actions/rebase@1.3.1
|
||||||
uses: cirrus-actions/rebase@1.3.1
|
|
||||||
|
17
.github/workflows/release.yml
vendored
Normal file
17
.github/workflows/release.yml
vendored
Normal 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
|
||||||
|
|
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"lerna": "2.7.1",
|
"lerna": "3.19.0",
|
||||||
"version": "0.61.0",
|
"version": "0.61.0",
|
||||||
"npmClient": "yarn",
|
"npmClient": "yarn",
|
||||||
"useWorkspaces": true
|
"useWorkspaces": true
|
||||||
|
@@ -23,6 +23,7 @@
|
|||||||
"release:latest": "yarn prerelease && lerna publish --force-publish",
|
"release:latest": "yarn prerelease && lerna publish --force-publish",
|
||||||
"release:next": "yarn prerelease && lerna publish --dist-tag next --force-publish",
|
"release:next": "yarn prerelease && lerna publish --dist-tag next --force-publish",
|
||||||
"release:experimental": "yarn prerelease && lerna publish --dist-tag experimental",
|
"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",
|
"serve": "cd ./site && next",
|
||||||
"start": "npm-run-all --parallel --print-label watch serve",
|
"start": "npm-run-all --parallel --print-label watch serve",
|
||||||
"test": "mocha --require ./config/babel/register.cjs ./packages/*/test/index.js",
|
"test": "mocha --require ./config/babel/register.cjs ./packages/*/test/index.js",
|
||||||
|
Reference in New Issue
Block a user