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:
Andreas 2021-03-13 21:06:10 +01:00 committed by GitHub
parent bc800f99ab
commit bea41bf66d

View File

@ -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