mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-08-30 16:58:03 +08:00
Adopt galaxy-api-client into the client pnpm workspace
Adds client/pnpm-workspace.yaml so that pnpm install from client/ resolves galaxy-api-client as a workspace member. The per-package client/packages/api-client/pnpm-lock.yaml goes away in favor of the single client/pnpm-lock.yaml covering the whole workspace. CI is simplified to a single install step, then workspace-filtered build/test/publish invocations (pnpm --filter @galaxyproject/galaxy-api-client). This is the first real workspace member; the packages/* glob is ready to accept extractions (galaxy-utils, galaxy-ui, galaxy-composables) in follow-up PRs.
This commit is contained in:
@@ -3,11 +3,15 @@ on:
|
||||
push:
|
||||
paths:
|
||||
- 'client/packages/api-client/**'
|
||||
- 'client/pnpm-workspace.yaml'
|
||||
- 'client/pnpm-lock.yaml'
|
||||
- 'client/src/api/**'
|
||||
- '.github/workflows/client-api-test.yaml'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'client/packages/api-client/**'
|
||||
- 'client/pnpm-workspace.yaml'
|
||||
- 'client/pnpm-lock.yaml'
|
||||
- 'client/src/api/**'
|
||||
- '.github/workflows/client-api-test.yaml'
|
||||
concurrency:
|
||||
@@ -31,15 +35,12 @@ jobs:
|
||||
uses: pnpm/action-setup@v5
|
||||
with:
|
||||
package_json_file: client/package.json
|
||||
- name: Install client dependencies
|
||||
- name: Install workspace dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
working-directory: client
|
||||
- name: Install client-api dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
working-directory: client/packages/api-client
|
||||
- name: Build client-api
|
||||
run: pnpm run build
|
||||
working-directory: client/packages/api-client
|
||||
run: pnpm --filter @galaxyproject/galaxy-api-client run build
|
||||
working-directory: client
|
||||
- name: Run client-api tests
|
||||
run: pnpm test
|
||||
working-directory: client/packages/api-client
|
||||
run: pnpm --filter @galaxyproject/galaxy-api-client test
|
||||
working-directory: client
|
||||
|
||||
@@ -127,8 +127,8 @@ jobs:
|
||||
run: npm run sync-version
|
||||
working-directory: 'client/packages/api-client'
|
||||
- name: build client-api
|
||||
run: pnpm install && pnpm run build
|
||||
working-directory: 'client/packages/api-client'
|
||||
run: pnpm --filter @galaxyproject/galaxy-api-client run build
|
||||
working-directory: 'client'
|
||||
- name: publish client-api
|
||||
if: (github.event_name == 'workflow_dispatch' && inputs.release_type == 'release') || (github.event_name == 'release' && !github.event.release.prerelease)
|
||||
run: npm publish --provenance --access public
|
||||
|
||||
-1764
File diff suppressed because it is too large
Load Diff
Generated
+1538
-522
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,2 @@
|
||||
packages:
|
||||
- "packages/*"
|
||||
Reference in New Issue
Block a user