Skip to content

chore: release (#29) #27

chore: release (#29)

chore: release (#29) #27

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Set up Git Identity
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- uses: pnpm/[email protected]
with:
version: 9.1.1
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install
- name: Bump Version and Create Release Pull Request
id: changesets
uses: changesets/action@v1
with:
commit: 'chore: release'
title: 'chore: release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push changes and tags
run: |
git push --follow-tags origin main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to npm
run: pnpm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}