chore: bump version #5
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: 🆕 Release management | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '.vscode/**' | |
- 'demo/**' | |
- '*.md' | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
main: | |
name: Publish changed packages | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🏗 Setup repo | |
uses: actions/checkout@v4 | |
- name: 🏗 Setup pnpm | |
uses: pnpm/action-setup@v4 | |
- name: 🏗 Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: pnpm | |
- name: 📦 Install dependencies | |
run: pnpm install | |
- name: 🆕 Publish to npm or create release PR | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
title: '🆕 Upcoming release' | |
commit: 'chore: bump version' | |
version: pnpm run version | |
publish: pnpm run release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |