Skip to content

Commit 29cd12b

Browse files
committed
Update Lerna to v9
1 parent 0ab789a commit 29cd12b

File tree

8 files changed

+3540
-3194
lines changed

8 files changed

+3540
-3194
lines changed

.github/workflows/publish-alpha.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/publish-packages.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
name: Publish JS Packages
22
on:
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]
615
jobs:
@@ -14,7 +23,7 @@ jobs:
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:
@@ -23,9 +32,11 @@ jobs:
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

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,7 @@ plugins-dev-venv/
5050

5151
# Docs snapshots
5252
extract-results/
53-
snapshot-results/
53+
snapshot-results/
54+
55+
.nx/workspace-data
56+
.nx/cache

.prettierignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
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

lerna.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
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"

nx.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
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
}

0 commit comments

Comments
 (0)