-
-
Notifications
You must be signed in to change notification settings - Fork 170
28 lines (28 loc) · 642 Bytes
/
main.yaml
File metadata and controls
28 lines (28 loc) · 642 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
jobs:
release:
runs-on: ubuntu-latest
environment: release
name: Release
steps:
- uses: pnpm/action-setup@v4
with:
version: latest
- name: setup repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- run: pnpm install
- run: pnpm build
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
name: Build and release
on:
push:
branches:
- main