-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- feature: publish cargo package shinkai_tools_runner (#11)
* - feature: added cicd to release libraries in dev versions * - fix: tools folders when compile for crate * - fix: added missing tool * - fix: cargo edit dep * - fix: cargo toml to include tools as assets * - fix: cargo include * - fix: concurrent commands * - fix: typo * - fix: removed branch from ci trigger
- Loading branch information
1 parent
9af572d
commit 953adea
Showing
11 changed files
with
357 additions
and
54 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,69 @@ | ||
name: Release development | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
defaults: | ||
run: | ||
working-directory: ./ | ||
|
||
jobs: | ||
prebuild: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.package-version.outputs.version }} | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: get npm version | ||
id: package-version | ||
uses: Saionaro/[email protected] | ||
|
||
publish-libraries: | ||
needs: prebuild | ||
runs-on: ubuntu-latest | ||
environment: development | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node version | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
check-latest: false | ||
registry-url: https://registry.npmjs.org | ||
cache: 'npm' | ||
cache-dependency-path: package-lock.json | ||
|
||
- name: Cache cargo assets | ||
id: cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: build-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
npm cache verify | ||
npm ci --no-audit --prefer-offline | ||
- name: Setup cargo version from npm | ||
run: | | ||
cargo install cargo-edit --force | ||
cargo set-version ${{ needs.prebuild.outputs.version }}-dev.${{github.run_number}} | ||
- name: Run NX publish | ||
run: npx nx run-many -t publish --skip-nx-cache --verbose | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |
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 |
---|---|---|
|
@@ -10,3 +10,4 @@ target | |
|
||
.nx/cache | ||
.nx/workspace-data | ||
libs/shinkai-tools-runner/tools |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
[workspace] | ||
members = [ | ||
"libs/shinkai-tools-runner", | ||
] | ||
members = ["libs/shinkai-tools-runner"] | ||
resolver = "2" | ||
|
||
[workspace.package] | ||
version = "0.0.0" | ||
repository = "https://github.com/dcSpark/shinkai-tools" | ||
keywords = ["shinkai", "tools", "safe", "ai"] | ||
license-file = "LICENSE" | ||
homepage = "https://shinkai.com" | ||
readme = "README.md" | ||
edition = "2021" |
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
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
Oops, something went wrong.