Skip to content

Commit c6972e4

Browse files
Fix versions and corepack
1 parent a505e5b commit c6972e4

8 files changed

Lines changed: 6070 additions & 4189 deletions

File tree

.github/workflows/linter.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ jobs:
1111
uses: actions/setup-node@v4
1212
with:
1313
node-version: 23.x
14+
15+
- name: Enable corepack
16+
run: corepack enable
1417

1518
- name: Install dependencies
16-
run: yarn install --dev
19+
run: yarn install
1720

1821
- name: Lint files
1922
run: yarn run lint

.github/workflows/tests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@ jobs:
1212
with:
1313
node-version: 23.x
1414

15+
- name: Enable corepack
16+
run: corepack enable
17+
1518
- name: Install dependencies
16-
run: yarn install --dev
19+
run: yarn install
1720

1821
- name: Run tests
19-
run: yarn run test -- --ci --reporters=default --reporters=jest-junit
22+
run: yarn run test --ci --reporters=default --reporters=jest-junit
2023
env:
2124
CI: true
2225

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
# Node
99
node_modules/
10+
.yarn
1011

1112
# Testing
1213
/events

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ WORKDIR /opt/autoupdate
66

77
COPY . /opt/autoupdate/
88

9+
RUN corepack enable
10+
911
RUN yarn install --frozen-lockfile && yarn run build
1012

1113
FROM node:24-alpine AS runner

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
"repository": "https://github.com/CSSUoB/pr-auto-updater",
77
"author": "MattyTheHacker <<18513864+MattyTheHacker@users.noreply.github.com>>",
88
"license": "MIT",
9-
"bin": {
10-
"autoupdate-action": "bin/cli.js"
11-
},
9+
"bin": "bin/cli.js",
1210
"scripts": {
1311
"build": "ncc build bin/cli.ts --out dist",
1412
"lint": "eslint . && prettier --list-different bin/*.ts src/*.ts test/*.ts",
@@ -45,7 +43,7 @@
4543
"ttypescript": "^1.5.15",
4644
"typescript": "^5.0.4"
4745
},
48-
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
46+
"packageManager": "yarn@4.9.1",
4947
"resolutions": {
5048
"glob": "^9.0.0"
5149
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"types": ["node", "jest"],
4-
"target": "ES2020",
4+
"target": "ES2023",
55
"module": "commonjs",
66
"moduleResolution": "node",
77
"strict": true,

yarn.lock

Lines changed: 6054 additions & 4181 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)