Skip to content

Commit

Permalink
fix: script update
Browse files Browse the repository at this point in the history
  • Loading branch information
gengjiawen committed Jul 17, 2023
1 parent c0c04c4 commit 873e2ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- uses: actions/checkout@v2
# npx not work in this cases due to some weird npm permission issues
- run: docker run -v $PWD:/pwd -w /pwd gengjiawen/node-build bash -c "yarn && node node_modules/.bin/ts-node scripts/bump_cargo_packages.ts"
- run: docker run -v $PWD:/pwd -w /pwd gengjiawen/node-build bash -c "pnpm i && pnpx ts-node scripts/bump_cargo_packages.ts"
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'chore: prepare rust packages'
1 change: 1 addition & 0 deletions scripts/bump_cargo_packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const pak = require('../package.json')
console.log(pak)

execSync(`cargo install cargo-workspaces`)
console.log(`install rust deps done`)
const bump_cmd = `cargo workspaces version custom ${pak.version} --no-git-commit -y`
console.log(bump_cmd)
execSync(bump_cmd)

0 comments on commit 873e2ad

Please sign in to comment.