2021-04-30 21:33:35 +00:00
|
|
|
name: Changelog
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-07-22 15:51:07 +00:00
|
|
|
paths:
|
|
|
|
- '.changeset/**'
|
2021-04-30 21:33:35 +00:00
|
|
|
branches:
|
2021-05-12 18:06:16 +00:00
|
|
|
- main
|
2021-04-30 21:33:35 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Changelog
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-05-12 18:06:16 +00:00
|
|
|
- name: Check out branch
|
|
|
|
uses: actions/checkout@v2
|
2021-04-30 21:33:35 +00:00
|
|
|
with:
|
2021-05-12 18:06:16 +00:00
|
|
|
fetch-depth: 0 # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
|
2021-04-30 21:33:35 +00:00
|
|
|
|
2021-05-12 18:06:16 +00:00
|
|
|
- name: Set up Node.js 14.x
|
|
|
|
uses: actions/setup-node@v2
|
2021-04-30 21:33:35 +00:00
|
|
|
with:
|
|
|
|
node-version: 14.x
|
|
|
|
|
2021-07-22 15:51:07 +00:00
|
|
|
- name: Get yarn cache directory
|
|
|
|
id: yarn-cache
|
|
|
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
|
|
|
|
|
|
- name: Set dependencies cache
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: ${{ steps.yarn-cache.outputs.dir }}
|
|
|
|
key: ${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('yarn.lock') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-${{ matrix.node_version }}-${{ hashFiles('yarn.lock') }}
|
|
|
|
${{ runner.os }}-${{ matrix.node_version }}-
|
2021-04-30 21:33:35 +00:00
|
|
|
|
2021-05-12 18:06:16 +00:00
|
|
|
- name: Create release PR
|
2021-04-30 21:33:35 +00:00
|
|
|
uses: changesets/action@master
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|