mirror of
https://github.com/logto-io/logto.git
synced 2025-03-10 22:22:45 -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
|
git config --global user.name silverhand-bot
|
||||||
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: node .script/publish.js
|
run: node .scripts/publish.js
|
||||||
|
|
||||||
create-github-release:
|
create-github-release:
|
||||||
environment: release
|
environment: release
|
||||||
|
|
|
@ -50,5 +50,10 @@ if (taggedPackages.length === 0) {
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
execSync('pnpm -r publish');
|
try {
|
||||||
execSync('git push --follow-tags');
|
execSync('pnpm -r publish');
|
||||||
|
execSync('git push --follow-tags');
|
||||||
|
} catch (error) {
|
||||||
|
console.log(String(error.stdout));
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue