mirror of
https://github.com/tachiyomiorg/website.git
synced 2025-02-01 11:32:38 +01:00
Update to NPM 7 in build script (#575)
Co-authored-by: Soitora <Soitora@users.noreply.github.com> Co-authored-by: Soitora <Soitora@users.noreply.github.com>
This commit is contained in:
parent
bc800f99ab
commit
bea41bf66d
22
.github/workflows/push.yml
vendored
22
.github/workflows/push.yml
vendored
@ -12,15 +12,27 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install Node v12
|
- name: Setup Node 12
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 12
|
node-version: 12
|
||||||
|
|
||||||
|
- name: Setup NPM 7
|
||||||
|
run: npm install -g npm@7
|
||||||
|
|
||||||
|
- name: Check cache
|
||||||
|
uses: actions/cache@v2
|
||||||
|
id: npm-cache
|
||||||
|
with:
|
||||||
|
path: '**/node_modules'
|
||||||
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
if: steps.npm-cache.outputs.cache-hit != 'true'
|
||||||
|
run: npm install
|
||||||
|
|
||||||
- name: Build website
|
- name: Build website
|
||||||
run: |
|
run: npm run build
|
||||||
npm install
|
|
||||||
npm run build
|
|
||||||
|
|
||||||
- name: Add .nojekyll
|
- name: Add .nojekyll
|
||||||
run: touch ./public/.nojekyll
|
run: touch ./public/.nojekyll
|
||||||
|
Loading…
x
Reference in New Issue
Block a user