-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): setup lerna for workspace publishing (#160)
* ci: setup lerna for workspace publishing * build: define repositories for each package * ci: run TS build before electron * chore: specify category for electron app * chore: use yml config for electron-builder * ci: build only dependencies before electron-build
- Loading branch information
Showing
10 changed files
with
1,949 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: build-test-on-pr | ||
on: [ pull_request, workflow_dispatch ] | ||
jobs: | ||
build-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
|
||
- name: 'Setup Node.js with pnpm cache' | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'pnpm' | ||
- run: pnpm add -g pnpm | ||
|
||
- run: pnpm install | ||
- run: pnpm run build | ||
- run: pnpm run test | ||
|
||
build-electron: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ macos-latest, ubuntu-latest, windows-latest ] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
|
||
- name: 'Setup Node.js with pnpm cache' | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'pnpm' | ||
- run: pnpm add -g pnpm | ||
|
||
- run: pnpm install | ||
- run: pnpm run -r --filter "agent-explorer^..." build # only the dependencies of agent-explorer | ||
|
||
- name: Build Electron app | ||
uses: paneron/action-electron-builder@v1.8.1 | ||
with: | ||
github_token: ${{ secrets.GH_TOKEN }} | ||
package_root: "./packages/agent-explorer" | ||
build_script_name: build-electron | ||
package_manager: pnpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"version": "1.37.0", | ||
"npmClient": "pnpm", | ||
"changelog": { | ||
"repo": "veramolabs/agent-explorer", | ||
"cacheDir": ".changelog" | ||
}, | ||
"command": { | ||
"publish": { | ||
"allowBranch": [ | ||
"main", | ||
"next", | ||
"unstable" | ||
], | ||
"conventionalCommits": true, | ||
"gitRemote": "origin", | ||
"message": "chore(release): %s [skip ci]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
{ | ||
"private": true, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/veramolabs/agent-explorer.git" | ||
}, | ||
"scripts": { | ||
"build": "pnpm -r build", | ||
"test": "pnpm -r test", | ||
"release": "pnpm -r --workspace-concurrency=1 exec -- npx --no-install semantic-release -e semantic-release-monorepo" | ||
"publish:latest": "lerna publish --conventional-commits --include-merged-tags --create-release github --yes --dist-tag latest --registry \"https://registry.npmjs.org/:_authToken=${NPM_TOKEN}\"", | ||
"publish:next": "lerna publish --conventional-prerelease --force-publish --canary --no-git-tag-version --include-merged-tags --preid next --pre-dist-tag next --yes --registry \"https://registry.npmjs.org/:_authToken=${NPM_TOKEN}\"" | ||
}, | ||
"devDependencies": { | ||
"lerna": "7.3.0", | ||
"lerna-changelog": "2.2.0" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
appId: io.veramo.explore | ||
mac: | ||
category: public.app-category.developer-tools | ||
linux: | ||
category: Development | ||
publish: | ||
- provider: github | ||
releaseType: release | ||
files: | ||
- build/**/* | ||
- node_modules/**/* | ||
- electron/**/* | ||
directories: | ||
buildResources: assets | ||
icon: AppIcon.icns | ||
productName: Agent Explorer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.