separate uses & run steps

This commit is contained in:
jem 2020-06-29 17:42:28 +02:00
parent ba065753b2
commit 43a077a641
3 changed files with 14 additions and 5 deletions

View file

@ -31,14 +31,18 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: test 'em
run: npm install
run: npm install -g --save-dev shadow-cljs
run: shadow-cljs compile test
- name: build release with node.js ${{ matrix.node-version }}
- name: build release with node.js 14.x
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
node-version: 14.x
- name: build 'em
run: shadow-cljs release app
run: mkdir -p target/npm-build
run: cp mastodon-bot.js target/npm-build/

View file

@ -1,5 +1,4 @@
name: release prod
on:
push:
tags: '[0-9]+.[0-9]+.[0-9]+'
@ -32,14 +31,18 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: test 'em
run: npm install
run: npm install -g --save-dev shadow-cljs
run: shadow-cljs compile test
- name: build release with node.js ${{ matrix.node-version }}
- name: build release with node.js 14.x
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
node-version: 14.x
- name: build 'em
run: shadow-cljs release app
run: mkdir -p target/npm-build
run: cp mastodon-bot.js target/npm-build/

View file

@ -32,6 +32,8 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: test 'em
run: npm install
run: npm install -g --save-dev shadow-cljs
run: shadow-cljs compile test