diff --git a/.github/workflows/onRelease.yml b/.github/workflows/onRelease.yml index 2230d639..b1a105ef 100644 --- a/.github/workflows/onRelease.yml +++ b/.github/workflows/onRelease.yml @@ -22,6 +22,10 @@ jobs: ref: ${{ github.event.release.tag_name || inputs.tag }} - uses: salesforcecli/github-workflows/.github/actions/getPreReleaseTag@main id: distTag + - run: echo "[INFO] tag is=$INPUTS_TAG , version is=$INPUTS_VERSION" + env: + INPUTS_TAG: ${{ steps.distTag.outputs.tag }} + INPUTS_VERSION: ${{ steps.distTag.outputs.version }} getMajorVersion: needs: [getDistTag] @@ -30,8 +34,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: salesforcecli/github-workflows/.github/actions/parse-semver@main + id: parsedVersion with: input_string: ${{ needs.getDistTag.outputs.version }} + - run: echo "[INFO] Major version is=$INPUTS_MAJOR_VERSION" + env: + INPUTS_MAJOR_VERSION: ${{ steps.parsedVersion.outputs.major }} npm: uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main @@ -41,5 +49,6 @@ jobs: sign: true tag: ${{ needs.getDistTag.outputs.tag || (needs.getMajorVersion.outputs.major == '1') && 'latest' || 'next' }} githubTag: ${{ github.event.release.tag_name || inputs.tag }} + nodeVersion: 20.18.0 secrets: inherit diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5c8de402..f09db51d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,7 @@ name: tests on: push: - branches-ignore: [main] + branches-ignore: [main, 252-patch] workflow_dispatch: jobs: @@ -26,3 +26,4 @@ jobs: fail-fast: false with: os: ${{ matrix.os }} + nodeVersion: 20.18.0 diff --git a/.github/workflows/validate-pr.yml b/.github/workflows/validate-pr.yml index a312052e..adfafbdf 100644 --- a/.github/workflows/validate-pr.yml +++ b/.github/workflows/validate-pr.yml @@ -4,7 +4,7 @@ on: pull_request: types: [opened, reopened, edited] # only applies to PRs that want to merge to main - branches: [main] + branches: [main, 252-patch] jobs: pr-validation: