From 2905c0d8260ae7cbf713259a5a747460f579cfe1 Mon Sep 17 00:00:00 2001 From: Roman Vasilev <90195036+quesabe@users.noreply.github.com> Date: Fri, 31 May 2024 07:22:07 +0000 Subject: [PATCH] PLA-317 Fall back to NodeJS@16 in publish action Somehow v20 does not bundle dependencies, which causes the package to fail to bootstrap any project --- .github/workflows/publish-release.yml | 1 + .projenrc.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 245289d1..af99da7b 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -101,3 +101,4 @@ jobs: registry-url: https://registry.npmjs.org/ npm-token: ${{ secrets.NPM_TOKEN }} include-build-step: true + node-version: 16 diff --git a/.projenrc.ts b/.projenrc.ts index 37445758..69885491 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -155,6 +155,8 @@ publishReleaseGithubWorkflow.addJobs({ 'registry-url': 'https://registry.npmjs.org/', 'npm-token': '${{ secrets.NPM_TOKEN }}', 'include-build-step': true, + // FIXME: v16 is a workaround with the problem revealed on v20: deps are not bundled upon publish. + 'node-version': 16, }, }, ]),