-
Notifications
You must be signed in to change notification settings - Fork 13
61 lines (52 loc) · 1.35 KB
/
nodejs.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Test & Release
on: [push]
jobs:
test:
name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: [20]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}
- name: install & test
run: |
npm -v
node -v
npm i -g yarn
yarn
npm run bootstrap
npm run build-api && npm run build-cli
cd ./packages/api
npm run test
env:
CI: true
publish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 16
- name: Install
run: |
npm -v
node -v
npm i -g yarn
yarn
npm run bootstrap
npm run build-api && npm run build-cli
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: packages/cli/binaries/@clobbr/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}