ci(fix): set the node version to the version saved in project
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user