Update @changesets/changelog-github #190
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@main | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Setup Node.js 14.x | |
uses: actions/setup-node@main | |
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 }} |