-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force nodejs version in github action workflow #182
Comments
Recap on Github actions |
Force Github action use specific node version
"engines": {
"node": ">=18.16.0"
},```
2. Apply set up node version action
```sh
- name: Get Node.js version
run: |
NODE_VERSION=$(jq -r '.engines.node' package.json)
echo "NODE_VERSION=${NODE_VERSION}" >> $GITHUB_ENV
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
```
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Overview
The text was updated successfully, but these errors were encountered: