Skip to content

Commit a2309c6

Browse files
authored
refactor: set pipelines and local node versions equally (#263)
* refactor: set pipelines and local node equally * refactor: moved node version setup to init cache * refactor: removed unnecessary if condition * fix: added missing property
1 parent 4b89e29 commit a2309c6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/actions/npm-cache/action.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@ description: "Initialize NPM Cache"
33
runs:
44
using: "composite"
55
steps:
6+
- name: Setup node equally to our local development version
7+
# pick the Node version to use and install it
8+
# https://github.com/actions/setup-node
9+
uses: actions/setup-node@v3
10+
with:
11+
node-version: 16
12+
13+
- name: Display node and npm version
14+
shell: bash
15+
run: |
16+
node --version
17+
npm --version
18+
619
- uses: actions/cache@v3
720
id: "npm-cache" # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
821
with:

0 commit comments

Comments
 (0)