Skip to content

Commit

Permalink
fix: deploy preview (#205)
Browse files Browse the repository at this point in the history
* update plugins

* revert to original plugins

* update deploy preview action

* delete & reinstall packages

Co-authored-by: Nathan Rogan <nathan.rogan@wmca.org.uk>
  • Loading branch information
rolorogan and nathan-rogan authored Jul 7, 2021
1 parent 956347b commit 5abd556
Show file tree
Hide file tree
Showing 2 changed files with 16,719 additions and 19,838 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/pr-deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,23 @@ on:
types: [opened, synchronize]

jobs:
build:
name: Build preview
build-preview:
name: build preview
runs-on: ubuntu-latest
steps:
- name: Checkout master
- name: Checkout branch
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: '12.x'
node-version: '14.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-
- name: Build site
run: |
npm ci
Expand All @@ -36,4 +43,4 @@ jobs:
# functions-dir: ./functions
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
Loading

0 comments on commit 5abd556

Please sign in to comment.