Skip to content

Commit

Permalink
Merge pull request #145 from pantheon-systems/PCC-858-update-to-lates…
Browse files Browse the repository at this point in the history
…t-octokit-version

Pcc 858 update to latest octokit version. Use node 18 instead of 16.
  • Loading branch information
kevinstubbs authored Dec 26, 2023
2 parents 37205e0 + 85fb982 commit 843ac36
Show file tree
Hide file tree
Showing 7 changed files with 6,431 additions and 4,227 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Setup nodejs
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
cache: "pnpm"

- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"preinstall": "node scripts/checkNodeVersion.js"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"dependencies": {
"@pantheon-systems/pcc-sdk-core": "latest",
Expand All @@ -47,7 +47,7 @@
"google-auth-library": "^8.9.0",
"inquirer": "^8.2.6",
"nunjucks": "^3.2.4",
"octokit": "^2.1.0",
"octokit": "^3.1.2",
"open": "^9.1.0",
"ora": "^6.3.1",
"package-json": "^8.1.1",
Expand Down
12 changes: 11 additions & 1 deletion packages/cli/src/cli/commands/init.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@ const PCC = "./dist/index.js";
const defaultArgs = ["--non-interactive", "--noInstall", "--verbose"];

const executePCC = async (command: string, args: string[]) => {
return await sh("node", [PCC, command, ...args, ...defaultArgs], true);
try {
return await sh("node", [PCC, command, ...args, ...defaultArgs], true);
} catch (e) {
console.error("executePCC encountered an issue", e, "args used:", [
PCC,
command,
...args,
...defaultArgs,
]);
throw e;
}
};

test("should be able to init starter kit for nextjs template", async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-sample-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"devDependencies": {
"@storybook/addon-essentials": "^7.6.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"eslint": "8.46.0",
"eslint-config-pcc-custom": "workspace:*",
"jest": "29.5.0",
"octokit": "^2.1.0",
"octokit": "^3.1.2",
"ora": "^6.3.1",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"lint:fix": "eslint . --fix && prettier --write . && tsc --noEmit"
},
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"devDependencies": {
"@types/markdown-it": "^13.0.2",
Expand Down
Loading

0 comments on commit 843ac36

Please sign in to comment.