Skip to content

Commit

Permalink
Update to NPM 7 in build script (tachiyomiorg#575)
Browse files Browse the repository at this point in the history
Co-authored-by: Soitora <Soitora@users.noreply.github.com>

Co-authored-by: Soitora <Soitora@users.noreply.github.com>
  • Loading branch information
ghostbear and Soitora authored Mar 13, 2021
1 parent 122257c commit 30d1781
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,27 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Node v12
uses: actions/setup-node@v1
- name: Setup Node 12
uses: actions/setup-node@v2
with:
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
run: |
npm install
npm run build
run: npm run build

- name: Add .nojekyll
run: touch ./public/.nojekyll
Expand Down

0 comments on commit 30d1781

Please sign in to comment.