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
35 changes: 0 additions & 35 deletions .github/workflows/publish-alpha.yml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/publish-nightly.yml

This file was deleted.

31 changes: 22 additions & 9 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
# This workflow publishes packages to npm using trusted publishing
# It triggers on release creation to publish production packages
# It can also be manually triggered to publish alpha/canary packages
name: Publish Packages
on:
workflow_dispatch:
release:
types: [created]
workflow_dispatch:
inputs:
preid:
description: 'Preid used to publish package. Must be unique per branch.'
required: true
default: 'alpha'
ref:
description: 'Commit to deploy from. Defaults to branch used for workflow_dispatch action.'
required: false
default: ''
jobs:
publish-packages:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
Expand All @@ -14,7 +26,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 @@ -24,13 +36,14 @@ jobs:
run: npm ci
- name: Build production
run: npm run build
# Need the --no-verify-access access flag since we use an automation token. Otherwise publish step fails
# https://github.com/lerna/lerna/issues/2788
- name: Publish packages
run: ./node_modules/.bin/lerna publish --no-verify-access from-package --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.DEEPHAVENBOT_NPM_TOKEN }}
- name: Publish canary packages
if: ${{ github.event_name == 'workflow_dispatch' }}
run: ./node_modules/.bin/lerna publish --canary --force-publish=\* --preid ${{ github.event.inputs.preid }} --dist-tag canary --yes
- name: Publish production packages
if: ${{ github.event_name == 'release' }}
run: ./node_modules/.bin/lerna publish from-package --yes
- name: Update deephaven-core
if: ${{ github.event_name == 'release' }}
run: |
curl -L \
-H "Accept: application/vnd.github+json" \
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,8 @@ packages/*/package-lock.json
/tests/*-snapshots/*
!/tests/*-snapshots/*-linux*
vite.config.local.ts
docker-compose.override.yml
docker-compose.override.yml
.nx/cache
.nx/workspace-data
.cursor/rules/nx-rules.mdc
.github/instructions/nx.instructions.md
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.13.1
v24.10.0
3 changes: 2 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"version": {
"changelogPreset": "conventionalcommits"
}
}
},
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
37 changes: 14 additions & 23 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
{
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": [
"build",
"build:babel",
"build:sass",
"svgo-dh",
"svgo-vs",
"build:icons",
"build:js"
]
}
}
},
"namedInputs": {
"default": [
"{projectRoot}/**/*",
Expand All @@ -34,7 +18,8 @@
"build": {
"inputs": ["build", "^build", "{workspaceRoot}/babel.config.js"],
"dependsOn": ["^build"],
"outputs": ["{projectRoot}/build", "{projectRoot}/dist"]
"outputs": ["{projectRoot}/build", "{projectRoot}/dist"],
"cache": true
},
"build:babel": {
"inputs": [
Expand All @@ -45,27 +30,33 @@
"outputs": [
"{projectRoot}/dist/**/*.js",
"{projectRoot}/dist/**/*.js.map"
]
],
"cache": true
},
"build:sass": {
"inputs": ["{projectRoot}/**/*.scss"],
"outputs": [
"{projectRoot}/css",
"{projectRoot}/dist/**/*.css",
"{projectRoot}/dist/**/*.css.map"
]
],
"cache": true
},
"svgo-dh": {
"outputs": ["{projectRoot}/dist/svg/dh"]
"outputs": ["{projectRoot}/dist/svg/dh"],
"cache": true
},
"svgo-vs": {
"outputs": ["{projectRoot}/dist/svg/vs"]
"outputs": ["{projectRoot}/dist/svg/vs"],
"cache": true
},
"build:icons": {
"outputs": ["{projectRoot}/dist/svg"]
"outputs": ["{projectRoot}/dist/svg"],
"cache": true
},
"build:js": {
"outputs": ["{projectRoot}/dist", "!{projectRoot}/dist/svg"]
"outputs": ["{projectRoot}/dist", "!{projectRoot}/dist/svg"],
"cache": true
}
}
}
Loading
Loading