@@ -246,8 +246,8 @@ jobs:
246246 path : ./npm-dist-diff.html
247247 if-no-files-found : ignore
248248
249- build-npm-package :
250- name : Build artifact with NPM package
249+ build-npm-dist :
250+ name : Build 'npmDist' artifact
251251 runs-on : ubuntu-latest
252252 needs : [test, fuzz, lint, integrationTests]
253253 steps :
@@ -268,52 +268,16 @@ jobs:
268268 - name : Build NPM package
269269 run : npm run build:npm
270270
271- - name : Upload NPM package
271+ - name : Upload npmDist package
272272 uses : actions/upload-artifact@v2
273273 with :
274274 name : npmDist
275275 path : ./npmDist
276276
277- deploy-to-npm-branch :
278- name : Deploy to `npm` branch
277+ build-deno-dist :
278+ name : Build 'denoDist' artifact
279279 runs-on : ubuntu-latest
280- if : |
281- github.event_name == 'push' &&
282- github.repository == 'graphql/graphql-js' &&
283- github.ref == 'refs/heads/main'
284- needs : [test, fuzz, lint, checkForCommonlyIgnoredFiles, integrationTests]
285- steps :
286- - name : Checkout repo
287- uses : actions/checkout@v2
288- with :
289- persist-credentials : false
290-
291- - name : Setup Node.js
292- uses : actions/setup-node@v2
293- with :
294- cache : npm
295- node-version : ${{ env.NODE_VERSION_USED_FOR_DEVELOPMENT }}
296-
297- - name : Install Dependencies
298- run : npm ci --ignore-scripts
299-
300- - name : Build NPM package
301- run : npm run build:npm
302-
303- - name : Deploy to `npm` branch
304- uses : ./.github/actions/deploy-dir-as-branch
305- with :
306- src_dir : npmDist
307- target_branch : npm
308-
309- deploy-to-deno-branch :
310- name : Deploy to `deno` branch
311- runs-on : ubuntu-latest
312- if : |
313- github.event_name == 'push' &&
314- github.repository == 'graphql/graphql-js' &&
315- github.ref == 'refs/heads/main'
316- needs : [test, fuzz, lint, checkForCommonlyIgnoredFiles, integrationTests]
280+ needs : [test, fuzz, lint, integrationTests]
317281 steps :
318282 - name : Checkout repo
319283 uses : actions/checkout@v2
@@ -332,13 +296,13 @@ jobs:
332296 - name : Build Deno package
333297 run : npm run build:deno
334298
335- - name : Deploy to `deno` branch
336- uses : ./.github/ actions/deploy-dir-as-branch
299+ - name : Upload denoDist package
300+ uses : actions/upload-artifact@v2
337301 with :
338- src_dir : denoDist
339- target_branch : deno
302+ name : denoDist
303+ path : ./denoDist
340304
341- build-website :
305+ build-website-dist :
342306 name : Build website
343307 runs-on : ubuntu-latest
344308 steps :
@@ -358,3 +322,9 @@ jobs:
358322
359323 - name : Build Docs
360324 run : npm run build:website
325+
326+ - name : Upload denoDist package
327+ uses : actions/upload-artifact@v2
328+ with :
329+ name : websiteDist
330+ path : ./websiteDist
0 commit comments