Skip to content

Commit

Permalink
fix actions to work with node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Lauer authored and Jake Lauer committed May 17, 2024
1 parent f534de0 commit 68cefca
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/ci_cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,16 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install pnpm
uses: pnpm/install@v1
run: |
curl -L https://unpkg.com/@pnpm/self-installer@latest | node
export PATH="./node_modules/.bin:$PATH"
pnpm --version
- name: Install dependencies
run: pnpm install
Expand Down
1 change: 0 additions & 1 deletion .mocharc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ module.exports = {
// TBH I don't know why this is required, but removing it breaks things and it's not in the docs for Mocha.
// Seems as though this determines the search pattern, but then why do I also have to specify extensions?
spec: ["**/*.test.js", "**/*.test.ts"],
"node-option": ["loader=tsx/esm"],
};
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.17.0
20
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@
"scripts": {
"prepublish": "pnpm build && pnpm test",
"prepare": "husky install",
"reinstall": "npx npkill && pnpm install",
"// ==== TESTING ==== //": "",
"lint": "git add . && pnpm lint-staged",
"lint-fix": "eslint ./ --fix --resolve-plugins-relative-to=./",
"test:debug": "mocha --exit --config ./.mocharc.cjs --debug-mode",
"test": "mocha --exit --config ./.mocharc.cjs",
"test:debug": "node --import=tsx ./node_modules/mocha/bin/mocha.js --exit --config ./.mocharc.cjs --debug-mode",
"test": "node --import=tsx ./node_modules/mocha/bin/mocha.js --exit --config ./.mocharc.cjs",
"// ==== BUILD ==== //": "",
"build": "pnpm lint-fix && tsc --project ./tsconfig.json && resolve-tspaths",
"live": "tsc --watch --project ./tsconfig.json && resolve-tspaths",
Expand Down

0 comments on commit 68cefca

Please sign in to comment.