mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-01-05 07:02:10 +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
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- run: npm run dev-up
|
- run: npm install # will also, through `prepare` hook, 1. install ./app, and 2. build
|
||||||
- run: npm run build
|
|
||||||
# Only run linter once, for faster CI. Align the verisons of Node here with above and publish.yml.
|
# 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'
|
- if: matrix.platform == 'ubuntu-latest' && matrix.node-version == '14.x'
|
||||||
run: npm run lint
|
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.
|
# Align the version of Node here with ci.yml.
|
||||||
node-version: '14.x'
|
node-version: '14.x'
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- run: npm run dev-up
|
# Will also (through `prepare` hook): 1. install ./app, and 2. build
|
||||||
- run: npm run build
|
- run: npm install
|
||||||
- run: npm test
|
- run: npm test
|
||||||
|
- run: npm run lint
|
||||||
- run: npm publish
|
- run: npm publish
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
Loading…
Reference in New Issue
Block a user