-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 949 Bytes
/
release.yaml
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
34
35
36
37
38
39
40
41
name: RELEASE
on:
push:
branches:
- main
jobs:
source:
name: verify source
uses: ./.github/workflows/source.yaml
release:
name: release version
runs-on: ubuntu-latest
needs: [source]
permissions:
issues: write
contents: write
pull-requests: write
steps:
- name: checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup package manager
uses: pnpm/action-setup@v4
with:
run_install: false
- name: install node
uses: actions/setup-node@v4
with:
cache: 'pnpm'
check-latest: true
node-version-file: '.nvmrc'
- name: install dependencies
run: pnpm install
- name: release version
run: pnpm exec semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}