mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
ci: fix publish workflow (#2762)
This commit is contained in:
parent
77bad4b1e7
commit
74c1532a38
2 changed files with 8 additions and 3 deletions
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -110,7 +110,7 @@ jobs:
|
|||
git config --global user.name silverhand-bot
|
||||
|
||||
- name: Publish
|
||||
run: node .script/publish.js
|
||||
run: node .scripts/publish.js
|
||||
|
||||
create-github-release:
|
||||
environment: release
|
||||
|
|
|
@ -50,5 +50,10 @@ if (taggedPackages.length === 0) {
|
|||
process.exit(0);
|
||||
}
|
||||
|
||||
execSync('pnpm -r publish');
|
||||
execSync('git push --follow-tags');
|
||||
try {
|
||||
execSync('pnpm -r publish');
|
||||
execSync('git push --follow-tags');
|
||||
} catch (error) {
|
||||
console.log(String(error.stdout));
|
||||
throw error;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue