Skip to content

Commit

Permalink
chore(ci): remove all semantic-release plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
smellai committed Jul 4, 2024
1 parent 3c8d219 commit 760eead
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 57 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
run: npm run semantic-release
- name: Upload Code Coverage
uses: codecov/codecov-action@v3.1.0
64 changes: 8 additions & 56 deletions repo-scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,62 +19,14 @@ try {
// Plugin options
githubUrl: 'https://my-ghe.com',
githubApiPathPrefix: '/api-prefix', */
publish: false,
plugins: [
[
'@semantic-release/commit-analyzer',
{
preset: 'conventionalcommits',
releaseRules: [
{
type: 'build',
scope: 'deps',
release: 'patch',
},
],
},
],
[
'@semantic-release/release-notes-generator',
{
preset: 'conventionalcommits',
presetConfig: {
types: [
{
type: 'feat',
section: 'Features',
},
{
type: 'fix',
section: 'Bug Fixes',
},
{
type: 'build',
section: 'Dependencies and Other Build Updates',
hidden: false,
},
],
},
},
],
'@semantic-release/npm',
[
'@semantic-release/github',
{
publish: false,
// successComment:
// ":tada: This ${issue.pull_request ? 'pull request' : 'issue'} is included in version ${nextRelease.version}",
},
] /*,
[
'@semantic-release/git',
{
assets: ['package.json', 'package-lock.json'],
message:
'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
], */,
],
analyzeCommits: '@semantic-release/commit-analyzer',
verifyConditions: '@semantic-release/npm',
prepare: '@semantic-release/npm',
generateNotes: '@semantic-release/release-notes-generator',
publish: '@semantic-release/npm',
success: false,
fail: false,
npmPublish: true,
}
/* {
// Run semantic-release from `/path/to/git/repo/root` without having to change local process `cwd` with `process.chdir()`
Expand Down

0 comments on commit 760eead

Please sign in to comment.