chore: add changeset #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create changelog changesets | |
on: | |
push: | |
branches: | |
- v2-release/** | |
jobs: | |
create-changelog: | |
name: Create changelog | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn --immutable | |
- name: Extract version number from branch name | |
id: version_number | |
run: | | |
branchName=${{ github.ref }} | |
echo "result=${branchName##*/}" >> $GITHUB_OUTPUT | |
- name: Create PR with changelog | |
uses: changesets/action@v1 | |
with: | |
commit: 'ci: version packages' | |
title: 'ci: version packages v${{ steps.version_number.outputs.result }}' | |
env: | |
# Needs access to publish to npm | |
# refresh token before Saturday, May 25, 2024 | |
NPM_TOKEN: ${{ secrets.NPM_RELEASE_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |