Skip to content

Commit a831c35

Browse files
committed
Update github's actions
1 parent d20de9d commit a831c35

8 files changed

+49
-39
lines changed

.github/workflows/changelog.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,18 @@ jobs:
99
contents: read # for actions/checkout
1010
steps:
1111
- name: Checkout repo
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313
with:
1414
persist-credentials: false
15-
fetch-depth: 0 # fetch all history
15+
show-progress: false
16+
fetch-depth: 0 # fetch all reachable commits
17+
filter: tree:0 # while fetching trees and blobs on-demand
1618

1719
- name: Setup Node.js
18-
uses: actions/setup-node@v3
20+
uses: actions/setup-node@v4
1921
with:
2022
cache: npm
21-
node-version-file: '.node-version'
23+
node-version-file: 'package.json'
2224

2325
- name: Install Dependencies
2426
run: npm ci --ignore-scripts
@@ -29,7 +31,7 @@ jobs:
2931
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3032

3133
- name: Upload npm folder
32-
uses: actions/upload-artifact@v3
34+
uses: actions/upload-artifact@v4
3335
with:
3436
name: changelog
3537
path: ./changelog.txt

.github/workflows/ci.yml

+24-23
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ jobs:
88
contents: read # for actions/checkout
99
steps:
1010
- name: Checkout repo
11-
uses: actions/checkout@v3
11+
uses: actions/checkout@v4
1212
with:
1313
persist-credentials: false
1414

1515
- name: Setup Node.js
16-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v4
1717
with:
1818
cache: npm
19-
node-version-file: '.node-version'
19+
node-version-file: 'package.json'
2020

2121
- name: Install Dependencies
2222
run: npm ci --ignore-scripts
2323

2424
- name: Run tests
2525
run: npm run testonly
2626

27-
- uses: actions/upload-artifact@v2
27+
- uses: actions/upload-artifact@v4
2828
if: always()
2929
with:
3030
name: playwright-report
@@ -37,15 +37,15 @@ jobs:
3737
contents: read # for actions/checkout
3838
steps:
3939
- name: Checkout repo
40-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
4141
with:
4242
persist-credentials: false
4343

4444
- name: Setup Node.js
45-
uses: actions/setup-node@v3
45+
uses: actions/setup-node@v4
4646
with:
4747
cache: npm
48-
node-version-file: '.node-version'
48+
node-version-file: 'package.json'
4949

5050
- name: Install Dependencies
5151
run: npm ci --ignore-scripts
@@ -74,7 +74,7 @@ jobs:
7474
contents: read # for actions/checkout
7575
steps:
7676
- name: Checkout repo
77-
uses: actions/checkout@v3
77+
uses: actions/checkout@v4
7878
with:
7979
persist-credentials: false
8080

@@ -100,15 +100,15 @@ jobs:
100100
contents: read # for actions/checkout
101101
steps:
102102
- name: Checkout repo
103-
uses: actions/checkout@v3
103+
uses: actions/checkout@v4
104104
with:
105105
persist-credentials: false
106106

107107
- name: Setup Node.js
108-
uses: actions/setup-node@v3
108+
uses: actions/setup-node@v4
109109
with:
110110
cache: npm
111-
node-version-file: '.node-version'
111+
node-version-file: 'package.json'
112112

113113
- name: Install Dependencies
114114
run: npm ci --ignore-scripts
@@ -130,17 +130,18 @@ jobs:
130130
security-events: write # for codeql-action
131131
steps:
132132
- name: Checkout repo
133-
uses: actions/checkout@v3
133+
uses: actions/checkout@v4
134134
with:
135135
persist-credentials: false
136136

137137
- name: Initialize CodeQL
138-
uses: github/codeql-action/init@v2
138+
uses: github/codeql-action/init@v3
139139
with:
140-
languages: 'javascript, typescript'
140+
languages: 'javascript, typescript' # TODO: add c-cpp
141+
queries: security-and-quality
141142

142143
- name: Perform CodeQL analysis
143-
uses: github/codeql-action/analyze@v2
144+
uses: github/codeql-action/analyze@v3
144145

145146
buildDemo:
146147
name: Build Demo
@@ -149,15 +150,15 @@ jobs:
149150
contents: read # for actions/checkout
150151
steps:
151152
- name: Checkout repo
152-
uses: actions/checkout@v3
153+
uses: actions/checkout@v4
153154
with:
154155
persist-credentials: false
155156

156157
- name: Setup Node.js
157-
uses: actions/setup-node@v3
158+
uses: actions/setup-node@v4
158159
with:
159160
cache: npm
160-
node-version-file: '.node-version'
161+
node-version-file: 'package.json'
161162

162163
- name: Install Dependencies
163164
run: npm ci --ignore-scripts
@@ -166,7 +167,7 @@ jobs:
166167
run: npm run build:demo
167168

168169
- name: Upload demo-dist folder
169-
uses: actions/upload-pages-artifact@v1
170+
uses: actions/upload-pages-artifact@v3
170171
with:
171172
name: demoDist
172173
path: ./demo-dist
@@ -178,15 +179,15 @@ jobs:
178179
contents: read # for actions/checkout
179180
steps:
180181
- name: Checkout repo
181-
uses: actions/checkout@v3
182+
uses: actions/checkout@v4
182183
with:
183184
persist-credentials: false
184185

185186
- name: Setup Node.js
186-
uses: actions/setup-node@v3
187+
uses: actions/setup-node@v4
187188
with:
188189
cache: npm
189-
node-version-file: '.node-version'
190+
node-version-file: 'package.json'
190191

191192
- name: Install Dependencies
192193
run: npm ci --ignore-scripts
@@ -195,7 +196,7 @@ jobs:
195196
run: npm run build:release
196197

197198
- name: Upload npm folder
198-
uses: actions/upload-artifact@v3
199+
uses: actions/upload-artifact@v4
199200
with:
200201
name: npmDist
201202
path: |

.github/workflows/publish.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ jobs:
2828
runs-on: ubuntu-latest
2929
steps:
3030
- name: Checkout repo
31-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
3232
with:
3333
persist-credentials: false
3434

3535
- name: Setup Node.js
36-
uses: actions/setup-node@v3
36+
uses: actions/setup-node@v4
3737
with:
3838
cache: npm
39-
node-version-file: '.node-version'
39+
node-version-file: 'package.json'
4040
# 'registry-url' is required for 'npm publish'
4141
registry-url: 'https://registry.npmjs.org'
4242

43-
- uses: actions/download-artifact@v3
43+
- uses: actions/download-artifact@v4
4444
with:
4545
name: npmDist
4646
path: npmDist

.github/workflows/pull_request.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ jobs:
1515
contents: read # for actions/checkout
1616
steps:
1717
- name: Checkout repo
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
with:
2020
persist-credentials: false
2121

2222
- name: Dependency review
23-
uses: actions/dependency-review-action@v2
23+
uses: actions/dependency-review-action@v4
24+
with:
25+
comment-summary-in-pr: always

.github/workflows/push.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ jobs:
2727
steps:
2828
- name: Deploy to GitHub Pages
2929
id: deployment
30-
uses: actions/deploy-pages@v2
30+
uses: actions/deploy-pages@v4
3131
with:
3232
artifact_name: demoDist

.node-version

-1
This file was deleted.

package-lock.json

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
"bugs": {
1414
"url": "https://github.com/graphql-kit/graphql-voyager/issues"
1515
},
16+
"engines": {
17+
"node": ">=20.0.0"
18+
},
1619
"main": "dist/voyager.lib.js",
1720
"types": "typings/index.d.ts",
1821
"scripts": {
@@ -27,7 +30,7 @@
2730
"bundle:lib": "webpack --mode=production --env lib",
2831
"bundle": "rm -rf dist && npm run bundle:lib && npm run bundle:standalone",
2932
"compile:middleware": "tsc -d src/middleware/index.ts --outDir middleware --lib ES6,DOM,esnext.asynciterable",
30-
"build:worker": "npm run clean:worker && docker-compose up --abort-on-container-exit --build build-worker",
33+
"build:worker": "npm run clean:worker && docker compose up --abort-on-container-exit --build build-worker",
3134
"build:release": "npm run build:worker && npm run bundle && npm run compile:middleware && npm run declarations",
3235
"build:demo": "npm run build:release && rm -rf demo-dist && cp -R demo/ demo-dist/ && cp dist/voyager.css* dist/voyager.standalone.js* demo-dist/",
3336
"stats": "NODE_ENV=production webpack --json --mode=production > stats.json",
@@ -36,9 +39,9 @@
3639
"prettier": "prettier --write --list-different . **/*.svg",
3740
"prettier:check": "prettier --check . **/*.svg",
3841
"check:spelling": "cspell --cache --no-progress '**/*'",
39-
"testonly": "npm run build:demo && npm pack && docker-compose up --abort-on-container-exit --build test",
42+
"testonly": "npm run build:demo && npm pack && docker compose up --abort-on-container-exit --build test",
4043
"declarations": "tsc --emitDeclarationOnly -p tsconfig.lib.json",
41-
"update-snapshots": "docker-compose up --build update-snapshots"
44+
"update-snapshots": "docker compose up --build update-snapshots"
4245
},
4346
"peerDependencies": {
4447
"graphql": ">=16.5.0",

0 commit comments

Comments
 (0)