-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (37 loc) · 926 Bytes
/
build.yaml
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: Build
on:
push:
branches:
- master
jobs:
compile:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to push
contents: write
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 1
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup pnpm & install
uses: pnpm/action-setup@v3
with:
version: 9
run_install: true
- name: Build
run: pnpm run build
#- name: Lint
# run: npm run lint
- name: Add and Commit
uses: EndBug/add-and-commit@v9
with:
add: 'dist'
message: "update: build dist files"
committer_name: Ops Bot
committer_email: actions@github.com