Skip to content

Commit 5878525

Browse files
authored
fix: skip github release (#2)
1 parent 9774bef commit 5878525

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

scripts/release/index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async function run() {
1717
core.setOutput('name', pkgInfo.name);
1818
core.setOutput('registry', registry);
1919

20-
const lastCommitId = await execGit(`git log -n1 --format="%h"`);
20+
// const lastCommitId = await execGit(`git log -n1 --format="%h"`);
2121

2222
try {
2323
const configFiles = [
@@ -60,15 +60,15 @@ async function run() {
6060
}
6161
console.log('Result:', result);
6262
} catch (error) {
63-
console.error('> Rollback to last commit');
64-
const currentCommitId = await execGit(`git log -n1 --format="%h"`);
65-
const tagId = await execGit(`git tag --contains ${currentCommitId}`);
63+
// console.error('> Rollback to last commit');
64+
// const currentCommitId = await execGit(`git log -n1 --format="%h"`);
65+
// const tagId = await execGit(`git tag --contains ${currentCommitId}`);
6666

67-
await execGit(`git push --delete origin ${tagId}`);
68-
await execGit(`git reset --hard ${lastCommitId}`);
69-
await execGit(`git push --force`);
67+
// await execGit(`git push --delete origin ${tagId}`);
68+
// await execGit(`git reset --hard ${lastCommitId}`);
69+
// await execGit(`git push --force`);
7070

71-
console.error('> Rollback finished');
71+
// console.error('> Rollback finished');
7272

7373
// console.error(error);
7474
core.setFailed(error);

scripts/release/release.config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ module.exports = {
1111
},
1212
],
1313

14-
[ '@semantic-release/github',
15-
{
16-
addReleases: 'bottom',
17-
},
18-
],
14+
// 403, Resource not accessible by integration, https://github.com/eggjs/egg-mock/actions/runs/5112843660/jobs/9191347769
15+
// [ '@semantic-release/github',
16+
// {
17+
// addReleases: 'bottom',
18+
// },
19+
// ],
1920
],
2021
};

0 commit comments

Comments
 (0)