-
Notifications
You must be signed in to change notification settings - Fork 1.2k
36 lines (31 loc) · 1.04 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js 14.x
uses: actions/setup-node@master
with:
node-version: 14.x
- name: Install Dependencies
# we have a postinstall script that uses is-ci which doesn't yet detect GitHub Actions
run: CI=true yarn
- name: Create Release Pull Request
uses: changesets/action@master
with:
version: yarn version-packages
env:
# note that we're not using the GH token provided by Actions here because Actions has a rule that Actions
# will not run as the result of another Action so CI wouldn't run on the release PRs then
# we can get around it by using a personal access token from a GH account
GITHUB_TOKEN: ${{ secrets.KEYSTONE_RELEASE_BOT_GITHUB_TOKEN }}