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
|
||||
on: [push, pull_request]
|
||||
name: Test
|
||||
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
10
.github/workflows/rebase.yml
vendored
10
.github/workflows/rebase.yml
vendored
@@ -1,5 +1,5 @@
|
||||
# https://github.com/marketplace/actions/automatic-rebase (https://github.com/cirrus-actions/rebase)
|
||||
name: Automatic Rebase
|
||||
name: Rebase
|
||||
|
||||
on:
|
||||
issue_comment:
|
||||
@@ -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
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
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",
|
||||
"npmClient": "yarn",
|
||||
"useWorkspaces": true
|
||||
|
@@ -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",
|
||||
|
Reference in New Issue
Block a user