File tree Expand file tree Collapse file tree 8 files changed +3540
-3194
lines changed
Expand file tree Collapse file tree 8 files changed +3540
-3194
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11name : Publish JS Packages
22on :
33 workflow_dispatch :
4+ inputs :
5+ preid :
6+ description : ' Preid used to publish package. Must be unique per branch. Leave empty for stable release.'
7+ required : false
8+ default : ' '
9+ ref :
10+ description : ' Commit to deploy from. Defaults to branch used for workflow_dispatch action.'
11+ required : false
12+ default : ' '
413 release :
514 types : [created]
615jobs :
1423 - name : Checkout
1524 uses : actions/checkout@v4
1625 with :
17- ref : ${{ github.ref }}
26+ ref : ${{ github.event.inputs. ref }}
1827 - name : Setup Node
1928 uses : actions/setup-node@v4
2029 with :
2332 cache : ' npm'
2433 - name : Install dependencies
2534 run : npm ci
26- - name : Build production
35+ - name : Build packages
2736 run : npm run build
28- - name : Publish packages
37+ - name : Publish stable packages
38+ if : ${{ !github.event.inputs.preid }}
2939 run : ./node_modules/.bin/lerna publish from-package --yes
30- env :
31- NODE_AUTH_TOKEN : ${{ secrets.DEEPHAVENBOT_NPM_TOKEN }}
40+ - name : Publish canary packages
41+ if : ${{ github.event.inputs.preid }}
42+ run : ./node_modules/.bin/lerna publish --canary --preid ${{ github.event.inputs.preid }} --dist-tag canary --yes
Original file line number Diff line number Diff line change @@ -50,4 +50,7 @@ plugins-dev-venv/
5050
5151# Docs snapshots
5252extract-results /
53- snapshot-results /
53+ snapshot-results /
54+
55+ .nx /workspace-data
56+ .nx /cache
Original file line number Diff line number Diff line change 11# These json files should not be auto-formatted to avoid breaking CI tests
2- plugins /json /test /* .json
2+ plugins /json /test /* .json
3+ /.nx /cache
4+ /.nx /workspace-data
Original file line number Diff line number Diff line change 11{
22 "$schema" : " node_modules/lerna/schemas/lerna-schema.json" ,
3- "useWorkspaces" : true ,
43 "useNx" : false ,
54 "version" : " independent" ,
6- "packages" : [" plugins/*/src/js/" ],
75 "command" : {
86 "version" : {
97 "changelogPreset" : " conventionalcommits"
Original file line number Diff line number Diff line change 11{
2- "tasksRunnerOptions" : {
3- "default" : {
4- "runner" : " nx/tasks-runners/default" ,
5- "options" : {
6- "cacheableOperations" : [" build" ]
7- }
8- }
9- },
102 "defaultBase" : " main" ,
113 "namedInputs" : {
124 "default" : [" {projectRoot}/**/*" , " !{projectRoot}/dist/**/*" ]
135 },
146 "targetDefaults" : {
157 "build" : {
16- "outputs" : [" {projectRoot}/dist" ]
8+ "outputs" : [" {projectRoot}/dist" ],
9+ "cache" : true
1710 }
1811 }
1912}
You can’t perform that action at this time.
0 commit comments