Skip to content

Commit 59adb39

Browse files
committed
chore: add github workflows
1 parent 4cfdbc5 commit 59adb39

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
tags:
6+
- "*.*.*"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Nodejs
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: lts/*
20+
21+
- name: Setup pnpm
22+
uses: pnpm/action-setup@v4
23+
with:
24+
version: latest
25+
26+
- name: Install dependencies
27+
run: pnpm install --frozen-lockfile
28+
29+
- name: Run build
30+
run: pnpm run build
31+
32+
- name: Release
33+
uses: softprops/action-gh-release@v2
34+
with:
35+
files: |
36+
dist/main.js
37+
dist/manifest.json

0 commit comments

Comments
 (0)