@@ -575,124 +575,6 @@ jobs:
575575 # ============================================================
576576 # Standalone jobs (no dependencies on install-and-cibuild)
577577 # ============================================================
578- publish-dist :
579- runs-on : ubuntu-latest
580- steps :
581- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
582- with :
583- fetch-depth : 0
584- fetch-tags : true
585-
586- - uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
587- with :
588- node-version : ${{ env.NODE_VERSION }}
589- cache : ' npm'
590-
591- - name : Set up build environment
592- run : .github/scripts/env_build.sh
593-
594- - name : Preview CHANGELOG for next release (only on master)
595- if : github.ref == 'refs/heads/master'
596- run : npm run use-draftlogs && git --no-pager diff --color-words CHANGELOG.md || true
597-
598- - name : Set draft version in package.json
599- run : |
600- node --eval "var fs = require('fs'); var inOut = './package.json'; var data = JSON.parse(fs.readFileSync(inOut)); var a = process.argv; data.version = a[a.length - 1].replace('v', ''); fs.writeFileSync(inOut, JSON.stringify(data, null, 2) + '\n');" $(git describe)
601-
602- - name : View package.json diff between previous and next releases
603- run : git --no-pager diff --color-words tags/$(git describe --tags --abbrev=0) package.json || true
604-
605- - name : Build dist/
606- run : npm run build
607-
608- # Upload library uncompressed to allow for testing in REPLs
609- - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
610- name : Upload uncompressed plotly.js built from PR, using Node 22
611- with :
612- retention-days : 30
613- archive : false
614- path : dist/plotly.js
615-
616- - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
617- name : Upload Node 18 archive of plotly.js build folder
618- with :
619- name : dist-node18
620- retention-days : 7
621- path : dist/
622-
623- - name : View dist/README.md diff between previous and next releases
624- run : git --no-pager diff --color-words tags/$(git describe --tags --abbrev=0) dist/README.md || true
625-
626- - name : Preview plot-schema diff (only on master)
627- if : github.ref == 'refs/heads/master'
628- run : git --no-pager diff tags/$(git describe --tags --abbrev=0) dist/plot-schema.json || true
629-
630- - name : Test plot-schema.json diff
631- run : diff --unified --color dist/plot-schema.json test/plot-schema.json
632-
633- publish-dist-node-v22 :
634- runs-on : ubuntu-latest
635- steps :
636- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
637- with :
638- fetch-depth : 0
639- fetch-tags : true
640-
641- - uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
642- with :
643- node-version : ' 22.14.0'
644- cache : ' npm'
645-
646- - name : Set up build environment
647- run : .github/scripts/env_build.sh
648-
649- - name : Preview CHANGELOG for next release (only on master)
650- if : github.ref == 'refs/heads/master'
651- run : npm run use-draftlogs && git --no-pager diff --color-words CHANGELOG.md || true
652-
653- - name : Set draft version in package.json
654- run : |
655- node --eval "var fs = require('fs'); var inOut = './package.json'; var data = JSON.parse(fs.readFileSync(inOut)); var a = process.argv; data.version = a[a.length - 1].replace('v', ''); fs.writeFileSync(inOut, JSON.stringify(data, null, 2) + '\n');" $(git describe)
656-
657- - name : View package.json diff between previous and next releases
658- run : git --no-pager diff --color-words tags/$(git describe --tags --abbrev=0) package.json || true
659-
660- - name : Build dist/
661- run : npm run build
662-
663- # This is necessary to avoid a naming collision with the upload from the Node 18 build
664- - name : Copy library for upload
665- run : cp dist/plotly.js dist/plotly.node22.js
666-
667- # Upload library uncompressed to allow for testing in REPLs
668- - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
669- name : Upload uncompressed plotly.js built from PR, using Node 22
670- with :
671- name : plotly.node22.js
672- retention-days : 30
673- archive : false
674- path : dist/plotly.node22.js
675-
676- - name : Remove copy of library
677- run : rm dist/plotly.node22.js
678-
679- - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
680- name : Upload Node 22 archive of plotly.js build folder
681- with :
682- name : dist-node22
683- retention-days : 7
684- path : dist/
685-
686- - name : View dist/README.md diff between previous and next releases
687- run : git --no-pager diff --color-words tags/$(git describe --tags --abbrev=0) dist/README.md || true
688-
689- - name : Preview plot-schema diff (only on master)
690- if : github.ref == 'refs/heads/master'
691- run : git --no-pager diff tags/$(git describe --tags --abbrev=0) dist/plot-schema.json || true
692-
693- - name : Test plot-schema.json diff
694- run : diff --unified --color dist/plot-schema.json test/plot-schema.json
695-
696578 test-stackgl-bundle :
697579 needs : detect-changes
698580 if : >-
0 commit comments