Skip to content

Commit

Permalink
Remove confused guard on eslint execution
Browse files Browse the repository at this point in the history
  • Loading branch information
holly-cummins committed Nov 22, 2023
1 parent 50150a7 commit 244b1ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,14 @@ jobs:
restore-keys: | # If there are multiple partial matches for a restore key, the action returns the most recently created cache.
gatsby-build-github-queries-${{ steps.date.outputs.month }}-${{ steps.date.outputs.day }}
gatsby-build-github-queries-
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: "npm" # this only caches global dependencies

- run: npm ci --prefer-offline

- uses: dorny/paths-filter@v2
id: filter
with:
Expand All @@ -63,16 +66,17 @@ jobs:
# run eslint on all files if eslintrc changes
- name: Run eslint on changed files
if: steps.filter.outputs.eslintrc == 'false'
uses: sibiraj-s/action-eslint@v2
with:
all-files: ${{ steps.filter.outputs.eslintrc == 'true' }}

- run: npm run build -- ${{ github.ref_name == 'main' && '--prefix-paths' || '' }}
env:
NODE_ENV: production
GATSBY_ACTIVE_ENV: production
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SEGMENT_KEY: ${{ secrets.SEGMENT_KEY }}

- name: Caching GitHub API results
uses: actions/cache/save@v3 # save the cache even if the integration tests fail
with:
Expand Down

0 comments on commit 244b1ec

Please sign in to comment.