Skip to content

Commit

Permalink
Update step name
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 committed Dec 7, 2022
1 parent e588f20 commit 136bbd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/setup-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ runs:
node-version-file: '.nvmrc'
cache: npm

- name: Get the node version
id: node-version
- name: Get node and npm version
id: node-npm-version
run: |
echo "NODE_VERSION=$(node -v)" >> $GITHUB_OUTPUT
echo "NPM_VERSION=$(npm -v)" >> $GITHUB_OUTPUT
Expand All @@ -35,7 +35,7 @@ runs:
uses: actions/cache@v3
with:
path: '**/node_modules'
key: node_modules-${{ runner.os }}-${{ steps.node-version.outputs.NODE_VERSION }}/${{ steps.node-version.outputs.NPM_VERSION }}-${{ hashFiles('package-lock.json') }}
key: node_modules-${{ runner.os }}-${{ steps.node-npm-version.outputs.NODE_VERSION }}/${{ steps.node-npm-version.outputs.NPM_VERSION }}-${{ hashFiles('package-lock.json') }}

- name: Npm install
if: ${{ steps.cache-node_modules.outputs.cache-hit != 'true' }}
Expand Down

0 comments on commit 136bbd0

Please sign in to comment.