-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 872 Bytes
/
ci.yml
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
name: ci
on:
push:
tags:
- v*.*.*
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Enable corepack and pnpm
run: |
corepack enable
corepack prepare pnpm@latest --activate
- name: Install dependencies and build
run: |
pnpm install
pnpm build
- name: Fetch latest tags
run: |
git fetch --tags
- name: Release
uses: softprops/action-gh-release@v2
with:
draft: false
prerelease: false
fail_on_unmatched_files: false
files: dist/**/*
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}