Skip to content

Commit

Permalink
Merge pull request #8677 from CDCgov/josiahsiegel/update/action_node
Browse files Browse the repository at this point in the history
frontend action read node version from file
  • Loading branch information
JosiahSiegel committed Mar 10, 2023
2 parents b9f927e + 4ed86e3 commit 249cdb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .github/actions/build-frontend/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ inputs:
runs:
using: "composite"
steps:
- name: Use Node.js ${{ matrix.node-version }} with yarn

- name: Use Node.js with yarn
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
with:
node-version: "18.15"
node-version-file: 'frontend-react/package.json'

- run: yarn install
working-directory: frontend-react
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/build_frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Pre Job
runs-on: ubuntu-latest
outputs:
has_react_change: ${{ steps.skip_check.outputs.frontend_react }}
has_react_change: ${{ steps.build_vars.outputs.has_react_change }}
env_name: ${{ steps.build_vars.outputs.env_name }}
version: ${{ steps.build_vars.outputs.version }}
steps:
Expand All @@ -23,13 +23,6 @@ jobs:
- name: Build vars
id: build_vars
uses: ./.github/actions/build-vars
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50
id: skip_check
with:
list-files: csv
filters: |
frontend_react:
- 'frontend-react/**'

build_frontend_react:
name: Build Frontend React
Expand Down

0 comments on commit 249cdb6

Please sign in to comment.