-
Notifications
You must be signed in to change notification settings - Fork 27
33 lines (30 loc) · 862 Bytes
/
Copy pathrelease.yml
File metadata and controls
33 lines (30 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
# fetch all tags, so changeset tag does not create extra tags
- run: git fetch --tags origin
- uses: actions/setup-node@v6
with:
node-version: '24'
package-manager-cache: false
- uses: pnpm/action-setup@v5
- run: pnpm install --frozen-lockfile
- uses: changesets/action@v1
with:
title: 'chore: release'
commit: 'chore: bump version'
version: pnpm run version
publish: pnpm run publish
createGithubReleases: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}