1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-29 09:59:48 +02:00

update workflows

This commit is contained in:
Ian Storm Taylor
2021-04-01 02:04:28 -04:00
parent f6ec6c4bf7
commit 22cb79c37a
5 changed files with 88 additions and 80 deletions

View File

@@ -1,37 +0,0 @@
name: Auto-release @dev
on:
push:
branches:
- master
jobs:
release:
name: Auto-release @dev
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@master
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@master
with:
node-version: 12.x
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: yarn
- name: Prepare release
run: yarn prerelease
- name: Release to @dev channel
run: |
yarn changeset version --snapshot
yarn changeset publish --tag dev
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -1,4 +1,4 @@
name: Test
name: Continuous Integration
on:
- push
@@ -8,10 +8,26 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 12
- run: yarn && yarn build:rollup && yarn test && yarn lint
- name: Run tests
run: yarn && yarn build:rollup && yarn test && yarn lint
env:
CI: true
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 12
- name: Run linters
run: yarn && yarn lint
env:
CI: true

View File

@@ -1,5 +1,5 @@
# https://github.com/marketplace/actions/automatic-rebase (https://github.com/cirrus-actions/rebase)
name: Rebase
name: Comment Automation
on:
issue_comment:

View File

@@ -1,38 +0,0 @@
name: Create release PR
on:
push:
branches:
- master
jobs:
release:
name: Create release PR
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@master
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@master
with:
node-version: 12.x
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: yarn
- name: Prepare release
run: yarn prerelease
# https://github.com/changesets/action
- name: Create release pull request
uses: changesets/action@master
with:
publish: yarn changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

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

@@ -0,0 +1,67 @@
name: Release Automation
on:
push:
branches:
- master
jobs:
latest:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@master
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@master
with:
node-version: 12.x
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: yarn
- name: Prepare release
run: yarn prerelease
# https://github.com/changesets/action
- name: Create release pull request
uses: changesets/action@master
with:
publish: yarn changeset publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
dev:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@master
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@master
with:
node-version: 12.x
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: yarn
- name: Prepare release
run: yarn prerelease
- name: Release to @dev channel
run: |
yarn changeset version --snapshot
yarn changeset publish --tag dev
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}