Skip to content

Commit b7afe50

Browse files
update: setup nodejs env in workflow
1 parent 4e998da commit b7afe50

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/actions/make-build/action.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ runs:
2222
env:
2323
RELEASE_FILENAME: "rave-woocommerce-payment-gateway.zip"
2424
run: |
25-
nvm install
26-
nvm use
2725
npm install
2826
npm run build
2927

.github/workflows/package-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
if: ${{ always() }}
1616
- name: Checkout code
1717
uses: actions/checkout@v3
18+
- name: Setup Node.js environment
19+
uses: actions/[email protected]
20+
with:
21+
node-version-file: .nvmrc
1822
- name: Build Plugin
1923
uses: ./.github/actions/make-build
2024
- name: WordPress Plugin Deploy

0 commit comments

Comments
 (0)