-
Notifications
You must be signed in to change notification settings - Fork 13
40 lines (32 loc) · 968 Bytes
/
publish.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
# Publish new commits to npm. See https://github.com/mikeal/merge-release/blob/master/README.md for more info.
name: Publish
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
**/cpm_modules
**/node_modules
key: cpm-node-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake', '**/yarn.lock') }}
- uses: mymindstorm/setup-emsdk@v10
with:
version: 2.0.31
- name: install
env:
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules
run: yarn install
- name: test
run: yarn run test
- name: Publish
if: github.ref == 'refs/heads/master'
uses: mikeal/merge-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}