-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Add workflow for uploading dev builds of Plotly.js #7795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
emilykl
wants to merge
8
commits into
master
Choose a base branch
from
persistent-dev-build-url-2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+192
−122
Open
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4ca51e1
add upload-dev-build workflow
emilykl 1720ce7
revisions in response to PR comments
emilykl d215ce5
remove upload plotly.js step
emilykl 2f7f4f7
remove unused steps from publish-dist
emilykl 33b7425
remove NODE_VERSION env var
emilykl a9e2362
use short SHA instead of long SHA in directory name
emilykl a9a66fa
modify summary
emilykl e09ca41
retain only plotly.min.js artifact for per-commit uploads
emilykl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| name: Publish Dist | ||
|
|
||
| on: | ||
| push: | ||
| branches: [master] | ||
| pull_request: | ||
| types: | ||
| - opened | ||
| - reopened | ||
| - synchronize | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: publish-dist-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| publish-dist: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
| with: | ||
| fetch-depth: 0 | ||
| fetch-tags: true | ||
|
|
||
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6 | ||
| with: | ||
| node-version: '18' | ||
| cache: 'npm' | ||
|
|
||
| - name: Set up build environment | ||
| run: .github/scripts/env_build.sh | ||
|
|
||
| - name: Set draft version in package.json | ||
| run: | | ||
| 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) | ||
| # View package.json diff from last release (should show that the version has been changed to the draft version) | ||
| git --no-pager diff --color-words tags/$(git describe --tags --abbrev=0) package.json || true | ||
|
|
||
| - name: Build dist/ | ||
| run: npm run build | ||
|
|
||
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | ||
| name: Upload Node 18 archive of plotly.js build folder | ||
| with: | ||
| name: dist-node18 | ||
| retention-days: 7 | ||
| path: dist/ | ||
|
|
||
| - name: Test plot-schema.json diff | ||
| run: diff --unified --color dist/plot-schema.json test/plot-schema.json | ||
|
|
||
| publish-dist-node-v22: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
| with: | ||
| fetch-depth: 0 | ||
| fetch-tags: true | ||
|
|
||
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6 | ||
| with: | ||
| node-version: '22.14.0' | ||
| cache: 'npm' | ||
|
|
||
| - name: Set up build environment | ||
| run: .github/scripts/env_build.sh | ||
|
|
||
| - name: Set draft version in package.json | ||
| run: | | ||
| 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) | ||
| # View package.json diff from last release (should show that the version has been changed to the draft version) | ||
| git --no-pager diff --color-words tags/$(git describe --tags --abbrev=0) package.json || true | ||
|
|
||
| - name: Build dist/ | ||
| run: npm run build | ||
|
|
||
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | ||
| name: Upload Node 22 archive of plotly.js build folder | ||
| with: | ||
| name: dist-node22 | ||
| retention-days: 7 | ||
| path: dist/ | ||
|
|
||
| - name: Test plot-schema.json diff | ||
| run: diff --unified --color dist/plot-schema.json test/plot-schema.json | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.