-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 889 Bytes
/
build.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
name: Test and build ninnin
on: push
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: latest
cache: npm
- name: Install deps
run: npm ci
- name: Test
run: npm test
- name: Build
run: npm run build
- name: Release nightly
uses: softprops/action-gh-release@v1
with:
prerelease: true
name: nightly
tag_name: nightly
files: ninnin.js
fail_on_unmatched_files: true
- name: Release stable
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ninnin.js
fail_on_unmatched_files: true