Skip to content

Commit

Permalink
feat: set consistent node version
Browse files Browse the repository at this point in the history
Signed-off-by: David van der Spek <[email protected]>
  • Loading branch information
davidspek committed Nov 15, 2022
1 parent e5c3ae4 commit 05846c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,19 @@ jobs:
publish:
name: 'Bump & Publish'
runs-on: ubuntu-latest

steps:
- name: 'Checkout'
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.PLURAL_BOT_PAT }}
- name: Read Node.js version from package.json
run: echo ::set-output name=nodeVersion::$(node -p "require('./package.json').engines.node")
id: engines
- name: 'Setup Node'
uses: actions/setup-node@v3
with:
node-version: 16
node-version: ${{ steps.engines.outputs.nodeVersion }}
registry-url: 'https://registry.npmjs.org'
- name: 'Install Dependencies'
run: yarn install --immutable
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
"pluralsh"
],
"main": "index.js",
"engines": {
"node": "16.15.0"
},
"packageManager": "[email protected]",
"dependencies": {
"@babel/core": "^7.19.6",
Expand Down

0 comments on commit 05846c3

Please sign in to comment.