-
Notifications
You must be signed in to change notification settings - Fork 13
45 lines (38 loc) · 950 Bytes
/
build-test.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
45
name: Build & Test
on:
pull_request:
paths-ignore:
- "**.md"
push:
paths-ignore:
- "**.md"
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node: ["20"]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: Install dependencies with NPM
run: |
npm i -g @vercel/ncc
npm install
- name: Build new release
run: ncc build index.js --license licenses.txt
- name: Open pull request with changes
uses: peter-evans/create-pull-request@v6
with:
title: New build
branch: auto-build
delete-branch: true