diff --git a/.github/workflows/upgrade-cdktf.yml b/.github/workflows/upgrade-cdktf.yml index 0ad2b4e..3a89d36 100644 --- a/.github/workflows/upgrade-cdktf.yml +++ b/.github/workflows/upgrade-cdktf.yml @@ -18,6 +18,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 + - name: Setup Node.js + uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d + with: + node-version: 18.12.0 - name: Install run: yarn install - name: Get current CDKTF version diff --git a/.github/workflows/upgrade-node.yml b/.github/workflows/upgrade-node.yml index 4f67ecb..31c227a 100644 --- a/.github/workflows/upgrade-node.yml +++ b/.github/workflows/upgrade-node.yml @@ -18,6 +18,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 + - name: Setup Node.js + uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d + with: + node-version: 18.12.0 - name: Install run: yarn install - name: Get current Node.js version diff --git a/projenrc/upgrade-cdktf.ts b/projenrc/upgrade-cdktf.ts index 56f3d7b..17c7c59 100644 --- a/projenrc/upgrade-cdktf.ts +++ b/projenrc/upgrade-cdktf.ts @@ -31,6 +31,13 @@ export class UpgradeCDKTF { name: "Checkout", uses: "actions/checkout@v3", }, + { + name: "Setup Node.js", + uses: "actions/setup-node@v3", + with: { + "node-version": project.minNodeVersion, + }, + }, { name: "Install", run: "yarn install", diff --git a/projenrc/upgrade-node.ts b/projenrc/upgrade-node.ts index dbe00de..6027695 100644 --- a/projenrc/upgrade-node.ts +++ b/projenrc/upgrade-node.ts @@ -31,6 +31,13 @@ export class UpgradeNode { name: "Checkout", uses: "actions/checkout@v3", }, + { + name: "Setup Node.js", + uses: "actions/setup-node@v3", + with: { + "node-version": project.minNodeVersion, + }, + }, { name: "Install", run: "yarn install",