Skip to content

Commit 8514534

Browse files
committed
ci: Replace drone with github actions
1 parent eb2f65a commit 8514534

3 files changed

Lines changed: 95 additions & 247 deletions

File tree

.drone.star

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

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- stable-*
8+
pull_request:
9+
10+
jobs:
11+
ci:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
16+
17+
- name: Setup pnpm
18+
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
19+
with:
20+
version: 10.27.0
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
24+
with:
25+
node-version: 24.15.0
26+
cache: pnpm
27+
28+
- name: Install dependencies
29+
run: pnpm install
30+
31+
- name: Lint
32+
run: pnpm lint
33+
34+
- name: Check types
35+
run: pnpm check:types
36+
37+
- name: Run unit tests
38+
run: pnpm test:unit
39+
40+
- name: Build
41+
run: pnpm build

.github/workflows/release.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
16+
17+
- name: Setup pnpm
18+
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
19+
with:
20+
version: 10.27.0
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
24+
with:
25+
node-version: 24.15.0
26+
cache: pnpm
27+
28+
- name: Install dependencies
29+
run: pnpm install
30+
31+
- name: Build
32+
run: pnpm build
33+
34+
- name: Package
35+
run: |
36+
VERSION="${GITHUB_REF#refs/tags/v}"
37+
mkdir -p assets/skeleton/
38+
cp -R .vscode dev public src tests assets/skeleton/
39+
cp .editorconfig eslint.config.js .gitignore .npmrc .prettierrc.json docker-compose.yml LICENSE package.json pnpm-lock.yaml README.md tsconfig.json vite.config.ts assets/skeleton/
40+
cd assets/
41+
zip -r "skeleton-${VERSION}.zip" skeleton/
42+
rm -rf skeleton/
43+
44+
- name: Generate checksums
45+
run: |
46+
cd assets/
47+
md5sum * > md5sum.txt
48+
sha256sum * > sha256sum.txt
49+
50+
- name: Publish release
51+
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
52+
with:
53+
files: assets/*
54+
generate_release_notes: true

0 commit comments

Comments
 (0)