Skip to content

post: add github workflow #4

post: add github workflow

post: add github workflow #4

Workflow file for this run

name: Cache Test
on:
push:
branches: source
jobs:
cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: npm
- uses: actions/cache@v3
id: npm-cache
with:
path: |
'**/node_modules'
~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}
- if: ${{ steps.npm-cache.outputs.cache-hit != 'true' }}
run: npm install
- run: npm run deploy