Skip to content

Changelog

Changelog #750

Workflow file for this run

name: Changelog
on:
push:
branches:
- main
paths:
- .changeset/** # Only on changes to ./changeset/*
workflow_dispatch: # Allows manual trigger from GitHub UI
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@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3
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 }}