Skip to content

fix(ci): use CHANGESETS_TOKEN PAT to trigger CI on version PRs (#46) #41

fix(ci): use CHANGESETS_TOKEN PAT to trigger CI on version PRs (#46)

fix(ci): use CHANGESETS_TOKEN PAT to trigger CI on version PRs (#46) #41

Workflow file for this run

name: Version Packages
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
permissions: read-all
jobs:
version:
name: Create Version PR
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 24
cache: npm
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Test
run: npm run test:ci
- name: Create Version PR
uses: changesets/action@63a615b9cd06ba9a3e6d13796c7fbcb080a60a0b # v1
with:
version: npm run version
commit: 'chore(release): version packages'
title: 'chore(release): version packages'
env:
GITHUB_TOKEN: ${{ secrets.CHANGESETS_TOKEN }}