-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (33 loc) · 874 Bytes
/
main.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
name: Node CI
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
GIT_USER: ${{ secrets.GIT_USER }}
GIT_PASS: ${{ secrets.GIT_PASS }}
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@master
with:
version: 9
- name: SETUP_NODE_${{ matrix.node-version }}
uses: actions/setup-node@master
with:
node-version: ${{ matrix.node-version }}
- name: BEFORE_SCRIPT
run: |
git config --global user.name 'gracefullight'
git config --global user.email 'gracefullight.dev@gmail.com'
- name: INSTALL_PACKAGES
run: pnpm install --frozen-lockfile
- name: BUILD
run: pnpm run build
- name: DEPLOY
run: pnpm run deploy