Skip to content

Commit db30c89

Browse files
committed
Update CI workflow
- remove codesandbox ci
1 parent 80b8182 commit db30c89

File tree

3 files changed

+69
-82
lines changed

3 files changed

+69
-82
lines changed

.codesandbox/ci.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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

.github/workflows/main.yml

Lines changed: 0 additions & 78 deletions
This file was deleted.

0 commit comments

Comments
 (0)