-
Notifications
You must be signed in to change notification settings - Fork 43
27 lines (27 loc) · 785 Bytes
/
publish.yml
File metadata and controls
27 lines (27 loc) · 785 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
name: Publish
on:
push:
branches: [ main ]
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Git fetch tags
run: git fetch --tags origin
- uses: actions/setup-node@v6
with:
node-version: 24.13.0
cache: 'npm'
- run: npm ci
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: npm run release
commit: 'chore(): version packages'
createGithubReleases: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}