-
Notifications
You must be signed in to change notification settings - Fork 38
46 lines (44 loc) · 1.01 KB
/
ci.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
on:
workflow_dispatch:
push:
name: ci
jobs:
ci:
name: ci
runs-on: ubuntu-latest
environment: CI
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: npm install
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
npm ci
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
shell: bash
- name: build
run: |
npm run build-all
shell: bash
- name: test
run: |
npm run test
shell: bash
- name: publish npm module
if: github.ref == 'refs/heads/master'
run: |
npm publish
shell: bash
- name: publish release candidate to npm
if: github.ref == 'refs/heads/rc'
run: |
npm publish --tag rc
shell: bash