-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (28 loc) · 976 Bytes
/
changelog.yaml
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
name: Changelog
on:
push:
branches:
- main
paths:
- .changeset/** # Only on changes to ./changeset/*
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
changelog:
name: Update CHANGELOG
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Node.JS
uses: ./.github/actions/setup-node
- name: Install dependencies
run: npm ci --audit=false --fund=false
- name: Create PR for next release
uses: changesets/action@f13b1baaa620fde937751f5d2c3572b9da32af23 # v1.4.5
with:
# Note: `npm i` after versioning is necessary to refresh package-lock.json file with new version
version: npm run version && npm i
commit: "Update CHANGELOG and prepare next release"
title: "Bump version"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}