Skip to content

Commit

Permalink
ci: update release config (#285)
Browse files Browse the repository at this point in the history
Signed-off-by: Curtish <ch@curtish.me>
  • Loading branch information
curtis-h authored Sep 11, 2024
1 parent b8409af commit 7ac3c2d
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 59 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,4 @@ jobs:
GIT_COMMITTER_NAME: ${{ steps.import_gpg.outputs.name }}
run: |
npm install
if [[ "${{ inputs.release_candidate }}" == "true" ]]; then
npx semantic-release -e ./release-dev.config.js
else
npx semantic-release -e ./release-prod.config.js
fi
npx semantic-release -e ./release.config.js
10 changes: 0 additions & 10 deletions release-dev.config.js

This file was deleted.

9 changes: 0 additions & 9 deletions release-prod.config.js

This file was deleted.

35 changes: 0 additions & 35 deletions release.base.config.js

This file was deleted.

40 changes: 40 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
module.exports = {
branches: [
'main',
'release/*',
{
name: 'rc',
prerelease: true
}
],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
['@semantic-release/changelog', { changelogFile: 'CHANGELOG.md' }],
['@semantic-release/exec', { "prepareCmd": './publish.sh ${nextRelease.version}' }],
[
'@semantic-release/git',
{
assets: [
'package.json',
'package-lock.json',
'CHANGELOG.md',
'docs/**/*',
],
message: 'chore(release): release ${nextRelease.version}\n\n${nextRelease.notes}',
},
],
// [
// 'semantic-release-slack-bot',
// {
// notifyOnSuccess: true,
// notifyOnFail: true,
// markdownReleaseNotes: true,
// onSuccessTemplate: {
// text:
// "A new version of `$package_name` successfully released!\nVersion: `$npm_package_version`\nTag: $repo_url/releases/tag/v$npm_package_version\n\nRelease notes:\n$release_notes",
// },
// },
// ],
],
};

2 comments on commit 7ac3c2d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines Statements Branches Functions
Coverage: 75%
75.9% (2839/3740) 65.64% (1391/2119) 80.75% (730/904)

JUnit

Tests Skipped Failures Errors Time
527 6 💤 0 ❌ 0 🔥 55.882s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines Statements Branches Functions
Coverage: 75%
75.9% (2839/3740) 65.64% (1391/2119) 80.75% (730/904)

JUnit

Tests Skipped Failures Errors Time
527 6 💤 0 ❌ 0 🔥 56.093s ⏱️

Please sign in to comment.