-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.04 KB
/
Copy pathrelease.yaml
File metadata and controls
50 lines (40 loc) · 1.04 KB
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
42
43
44
45
46
47
48
49
50
name: Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout repo
uses: actions/checkout@v6
with:
fetch-depth: 0 # Important for semantic-release to get full git history
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
package_json_file: package.json
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Install dependencies
run: pnpm install
- name: Security audit
run: pnpm audit --audit-level high
continue-on-error: true
- name: Run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release