File tree Expand file tree Collapse file tree 3 files changed +69
-82
lines changed
Expand file tree Collapse file tree 3 files changed +69
-82
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : ['main']
6+ tags : ['v*']
7+ pull_request :
8+ branches : ['*']
9+
10+ workflow_dispatch :
11+
12+ concurrency :
13+ group : ${{ github.ref }}
14+ cancel-in-progress : true
15+
16+ jobs :
17+ validate :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - uses : actions/checkout@v6
21+
22+ - uses : pnpm/action-setup@v5
23+ with :
24+ version : 10
25+ run_install : false
26+
27+ - uses : actions/setup-node@v6
28+ with :
29+ node-version : 24
30+ cache : pnpm
31+
32+ - run : pnpm install
33+
34+ - run : pnpm validate
35+
36+ - uses : SonarSource/sonarqube-scan-action@v7.0.0
37+ if : " !startsWith(github.ref, 'refs/tags/')"
38+ env :
39+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
41+
42+ publish :
43+ runs-on : ubuntu-latest
44+ if : startsWith(github.ref, 'refs/tags/v')
45+ needs : validate
46+ permissions :
47+ id-token : write
48+ contents : read
49+ steps :
50+ - uses : actions/checkout@v6
51+
52+ - uses : pnpm/action-setup@v5
53+ with :
54+ version : 10
55+ run_install : false
56+
57+ - uses : actions/setup-node@v6
58+ with :
59+ node-version : 24
60+ cache : pnpm
61+ registry-url : https://registry.npmjs.org
62+
63+ - run : pnpm install
64+
65+ - run : pnpm build
66+
67+ - run : npm install -g npm@11
68+
69+ - run : npm publish --provenance
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments