diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 34e22e9..7432848 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -9,12 +9,22 @@ jobs: steps: - name: Checkout 🛎️ uses: actions/checkout@v2.3.1 - + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: '12.x' + - name: Cache Node.js modules + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.OS }}-node- + ${{ runner.OS }}- - name: Install and Build run: | - npm install + npm ci npm run build:gh - - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@4.0.0 with: