@@ -11,15 +11,15 @@ jobs:
1111 runs-on : ubuntu-latest
1212 # "[skip ci]" also causes Netlify to skip, so these are automatically in harmony
1313 # https://docs.netlify.com/site-deploys/manage-deploys/#skip-a-deploy
14- if : " !contains(github.event.head_commit.message, '[skip ci]')"
14+ if : " github.actor == 'jakejarvis' && !contains(github.event.head_commit.message, '[skip ci]')"
1515 timeout-minutes : 20
16- env :
17- NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
18- NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
1916 steps :
2017 - name : Wait for Netlify
2118 # installing via `npx` each run takes a long time, but deploys always take longer
2219 run : npx netlify-cli watch
20+ env :
21+ NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
22+ NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
2323
2424 audit :
2525 runs-on : ubuntu-latest
6363 with :
6464 name : lhci-results
6565 path : ./.lighthouseci
66-
67- lint :
68- runs-on : ubuntu-latest
69- if : " !contains(github.event.head_commit.message, '[skip ci]')"
70- steps :
71- - uses : actions/checkout@v2
72- with :
73- fetch-depth : 1
74- lfs : false
75- - uses : actions/setup-node@v2
76- with :
77- node-version : 14.x
78- - name : Get Yarn cache path
79- # https://github.com/actions/cache/blob/master/examples.md#node---yarn
80- # https://github.com/actions/cache/issues/60
81- id : yarn-cache
82- run : echo "::set-output name=dir::$(yarn cache dir)"
83- - name : Cache dependencies
84- uses : actions/cache@v2
85- with :
86- path : ${{ steps.yarn-cache.outputs.dir }}
87- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
88- restore-keys : |
89- ${{ runner.os }}-yarn-
90- - name : Install dependencies
91- run : yarn install --no-ignore-optional --frozen-lockfile
92- - name : Audit dependencies
93- run : yarn audit || true
94- continue-on-error : true
95- - name : Lint
96- run : yarn lint
97- continue-on-error : true
98- - name : Build
99- run : yarn build:hugo --environment development --baseURL / --buildDrafts --buildFuture
100- - name : Percy snapshots
101- # uncomment to disable all bot PRs (eg. dependabot) -- I'm using the free plan...
102- # if: "!contains(github.actor, '[bot]')"
103- 104- env :
105- PERCY_TOKEN : ${{ secrets.PERCY_TOKEN }}
0 commit comments