ci(fix): set the node version to the version saved in project

This commit is contained in:
@zimeg
2024-11-01 16:25:50 -07:00
parent 93bb73d09a
commit 464750e5be
+17 -4
View File
@@ -8,13 +8,26 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout the current code
uses: actions/checkout@v4
with:
ref: ${{ github.event.release.tag_name }}
- name: Install deps and build
run: npm ci && npm run build
- uses: teunmooij/[email protected]
- name: Configure the runtime node
uses: actions/setup-node@v4
with:
cache: npm
cache-dependency-path: package-lock.json
node-version-file: .nvmrc
- name: Install project dependencies
run: npm ci
- name: Build a production release
run: npm run build
- name: Distribute the latest tagged release
uses: teunmooij/[email protected]
with:
exclude: LICENSE
template: javascript-action