Skip to content

Commit

Permalink
Moved node setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronaldo Macapobre committed Aug 22, 2024
1 parent cbc7559 commit cc68430
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/actions/build-web/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,11 @@ inputs:
working_directory:
description: The working directory where the code will be built.
required: true
node_version:
description: The node version that will be used.
required: true

runs:
using: composite

steps:
- name: Use Node.js ${{ inputs.node_version }}
uses: actions/setup-node@v1
with:
node-version: ${{ inputs.node_version }}

- run: npm ci
working-directory: ${{ inputs.working_directory }}

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/app-vue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Building Web codebase
uses: ./.github/workflows/actions/build-web
with:
working_directory: ${{ env.WORKING_DIRECTORY }}
node_version: ${{ matrix.node-version }}

- name: Log in to the GHCR
uses: docker/login-action@v3
Expand Down

0 comments on commit cc68430

Please sign in to comment.