-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (32 loc) · 1.06 KB
/
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
35
36
37
38
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
with:
fetch-tags: 'true'
- 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
publish: npm run tag
commit: "Update CHANGELOG and prepare next release"
title: "Push next releases"
createGithubReleases: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}