-
-
Notifications
You must be signed in to change notification settings - Fork 24
34 lines (30 loc) · 599 Bytes
/
ci.yml
File metadata and controls
34 lines (30 loc) · 599 Bytes
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
name: GitHub Actions CI
on:
push:
branches:
- master
- release/*
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: npm install, build, and test
run: |
npm ci
npm run build --if-present
npm test --if-present
env:
CI: true
- name: publish artifacts
uses: actions/upload-artifact@master
with:
name: userscript
path: src/