Skip to content

Commit 464750e

Browse files
committed
ci(fix): set the node version to the version saved in project
1 parent 93bb73d commit 464750e

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.github/workflows/publish.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,26 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- name: Checkout
11+
- name: Checkout the current code
1212
uses: actions/checkout@v4
1313
with:
1414
ref: ${{ github.event.release.tag_name }}
15-
- name: Install deps and build
16-
run: npm ci && npm run build
17-
- uses: teunmooij/[email protected]
15+
16+
- name: Configure the runtime node
17+
uses: actions/setup-node@v4
18+
with:
19+
cache: npm
20+
cache-dependency-path: package-lock.json
21+
node-version-file: .nvmrc
22+
23+
- name: Install project dependencies
24+
run: npm ci
25+
26+
- name: Build a production release
27+
run: npm run build
28+
29+
- name: Distribute the latest tagged release
30+
uses: teunmooij/[email protected]
1831
with:
1932
exclude: LICENSE
2033
template: javascript-action

0 commit comments

Comments
 (0)