Skip to content

Commit e6e836c

Browse files
fix: set node version for npm-publish @W-16974485@ (#242)
* fix: customize CI for node v20 @W-16974485@ * fix: add debug logs to figure out npm tag issue @W-16974485@ (#236) * fix: set node version for npm-publish @W-16974485@ (#241) * fix: set node version for npm-publish @W-16974485@ * fix: setup nodejs to v20 for CI scripts * fix: set nodeVersion for nuts workflow
1 parent 8ed6b39 commit e6e836c

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.github/workflows/onRelease.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ jobs:
2222
ref: ${{ github.event.release.tag_name || inputs.tag }}
2323
- uses: salesforcecli/github-workflows/.github/actions/getPreReleaseTag@main
2424
id: distTag
25+
- run: echo "[INFO] tag is=$INPUTS_TAG , version is=$INPUTS_VERSION"
26+
env:
27+
INPUTS_TAG: ${{ steps.distTag.outputs.tag }}
28+
INPUTS_VERSION: ${{ steps.distTag.outputs.version }}
2529

2630
getMajorVersion:
2731
needs: [getDistTag]
@@ -30,8 +34,12 @@ jobs:
3034
runs-on: ubuntu-latest
3135
steps:
3236
- uses: salesforcecli/github-workflows/.github/actions/parse-semver@main
37+
id: parsedVersion
3338
with:
3439
input_string: ${{ needs.getDistTag.outputs.version }}
40+
- run: echo "[INFO] Major version is=$INPUTS_MAJOR_VERSION"
41+
env:
42+
INPUTS_MAJOR_VERSION: ${{ steps.parsedVersion.outputs.major }}
3543

3644
npm:
3745
uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main
@@ -41,5 +49,6 @@ jobs:
4149
sign: true
4250
tag: ${{ needs.getDistTag.outputs.tag || (needs.getMajorVersion.outputs.major == '1') && 'latest' || 'next' }}
4351
githubTag: ${{ github.event.release.tag_name || inputs.tag }}
52+
nodeVersion: 20.18.0
4453

4554
secrets: inherit

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: tests
22
on:
33
push:
4-
branches-ignore: [main]
4+
branches-ignore: [main, 252-patch]
55
workflow_dispatch:
66

77
jobs:
@@ -26,3 +26,4 @@ jobs:
2626
fail-fast: false
2727
with:
2828
os: ${{ matrix.os }}
29+
nodeVersion: 20.18.0

.github/workflows/validate-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
types: [opened, reopened, edited]
66
# only applies to PRs that want to merge to main
7-
branches: [main]
7+
branches: [main, 252-patch]
88

99
jobs:
1010
pr-validation:

0 commit comments

Comments
 (0)