Skip to content

Commit

Permalink
ci: read the version of npm from the package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK committed Jan 9, 2023
1 parent 0b13092 commit e619de3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ jobs:
uses: actions/checkout@v3.3.0
with:
token: ${{ secrets.DEPLOYMENT_TOKEN }}
- name: Find the version of Node from package.json
id: node-version
run: echo "{version}={$(jq -r .engines.node package.json)}" >> $GITHUB_OUTPUT
- name: Install Node
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ steps.node-version.outputs.version }}
- uses: DanySK/build-check-deploy-gradle-action@2.1.20
with:
build-command: true
Expand Down

0 comments on commit e619de3

Please sign in to comment.