Skip to content

chore: trigger CI

chore: trigger CI #61

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 }}