separate uses & run steps
This commit is contained in:
parent
ba065753b2
commit
43a077a641
3 changed files with 14 additions and 5 deletions
8
.github/workflows/release-dev.yml
vendored
8
.github/workflows/release-dev.yml
vendored
|
@ -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/
|
||||
|
|
9
.github/workflows/release-prod.yml
vendored
9
.github/workflows/release-prod.yml
vendored
|
@ -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/
|
||||
|
|
2
.github/workflows/test-pr.yml
vendored
2
.github/workflows/test-pr.yml
vendored
|
@ -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
|
||||
|
|
Reference in a new issue