-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (39 loc) · 1.42 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
39
40
41
42
43
44
45
46
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:
# https://github.com/actions/checkout/issues/1471#issuecomment-1771231294
fetch-tags: 'true'
fetch-depth: 0
- name: Setup Node.JS
uses: ./.github/actions/setup-node
- name: Install dependencies
run: npm ci --audit=false --fund=false
- name: Configure Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "devportal-portalsandtools-github-bot"
- 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: ${{ vars.CHANGESET_PR_TITLE }}
createGithubReleases: false
setupGitUser: false
env:
GITHUB_TOKEN: ${{ secrets.TAG_GITHUB_PAT }}