-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 938 Bytes
/
compile.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
on:
push:
branches:
- main
paths:
- src/**
jobs:
compile:
name: Compile typescript code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-node@v2
- name: Install dependencies
run: npm install
- name: Compile with ncc
run: npx @vercel/ncc build src/index.ts --minify
- name: Commit & Push changes
uses: actions-js/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
message: 'Auto-compile dist code'
author_name: 'splitsh automation'
author_email: '[email protected]'