mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-01-03 06:10:20 +00:00
Speed up CI by avoiding repeated npm install & build already done with "prepare" hook
This commit is contained in:
parent
0aa8276922
commit
e03e07e4bd
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -25,8 +25,7 @@ jobs:
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: npm run dev-up
|
||||
- run: npm run build
|
||||
- run: npm install # will also, through `prepare` hook, 1. install ./app, and 2. build
|
||||
# Only run linter once, for faster CI. Align the verisons of Node here with above and publish.yml.
|
||||
- if: matrix.platform == 'ubuntu-latest' && matrix.node-version == '14.x'
|
||||
run: npm run lint
|
||||
|
5
.github/workflows/publish.yml
vendored
5
.github/workflows/publish.yml
vendored
@ -14,9 +14,10 @@ jobs:
|
||||
# Align the version of Node here with ci.yml.
|
||||
node-version: '14.x'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- run: npm run dev-up
|
||||
- run: npm run build
|
||||
# Will also (through `prepare` hook): 1. install ./app, and 2. build
|
||||
- run: npm install
|
||||
- run: npm test
|
||||
- run: npm run lint
|
||||
- run: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
Loading…
Reference in New Issue
Block a user