Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions .github/workflows/publish-alpha.yml

This file was deleted.

21 changes: 16 additions & 5 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
name: Publish JS Packages
on:
workflow_dispatch:
inputs:
preid:
description: 'Preid used to publish package. Must be unique per branch. Leave empty for stable release.'
required: false
default: ''
ref:
description: 'Commit to deploy from. Defaults to branch used for workflow_dispatch action.'
required: false
default: ''
release:
types: [created]
jobs:
Expand All @@ -14,7 +23,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
ref: ${{ github.event.inputs.ref }}
- name: Setup Node
uses: actions/setup-node@v4
with:
Expand All @@ -23,9 +32,11 @@ jobs:
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build production
- name: Build packages
run: npm run build
- name: Publish packages
- name: Publish stable packages
if: ${{ !github.event.inputs.preid }}
run: ./node_modules/.bin/lerna publish from-package --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.DEEPHAVENBOT_NPM_TOKEN }}
- name: Publish canary packages
if: ${{ github.event.inputs.preid }}
run: ./node_modules/.bin/lerna publish --canary --preid ${{ github.event.inputs.preid }} --dist-tag canary --yes
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,7 @@ plugins-dev-venv/

# Docs snapshots
extract-results/
snapshot-results/
snapshot-results/

.nx/workspace-data
.nx/cache
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# These json files should not be auto-formatted to avoid breaking CI tests
plugins/json/test/*.json
plugins/json/test/*.json
/.nx/cache
/.nx/workspace-data
2 changes: 0 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useWorkspaces": true,
"useNx": false,
"version": "independent",
"packages": ["plugins/*/src/js/"],
"command": {
"version": {
"changelogPreset": "conventionalcommits"
Expand Down
11 changes: 2 additions & 9 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
{
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["build"]
}
}
},
"defaultBase": "main",
"namedInputs": {
"default": ["{projectRoot}/**/*", "!{projectRoot}/dist/**/*"]
},
"targetDefaults": {
"build": {
"outputs": ["{projectRoot}/dist"]
"outputs": ["{projectRoot}/dist"],
"cache": true
}
}
}
Loading
Loading