Skip to content

Commit

Permalink
ci: fix NPM and GitHub publish from semantic release (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmontag authored Jan 7, 2025
1 parent 94491ad commit 7faf708
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 21 deletions.
27 changes: 27 additions & 0 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
* Semantic release config object.
*
* @type {Partial<import('semantic-release').GlobalConfig>}
*/
const config = {
// For defaults see:
// https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#plugins
plugins: [
// Treat refactors as patch releases. See
// https://github.com/semantic-release/commit-analyzer?tab=readme-ov-file#usage.
[
'@semantic-release/commit-analyzer',
{
preset: 'angular',
releaseRules: [{ type: 'refactor', release: 'patch' }],
},
],
'@semantic-release/release-notes-generator',
// Publish releases to NPM.
'@semantic-release/npm',
// Publish releases to GitHub.
'@semantic-release/github',
],
};

module.exports = config;
2 changes: 2 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
},
"devDependencies": {
"@semantic-release/commit-analyzer": "^13.0.1",
"@semantic-release/github": "^11.0.1",
"@semantic-release/npm": "^12.0.1",
"@semantic-release/release-notes-generator": "^14.0.3",
"@types/chai": "^4.3.1",
"@types/glob": "^7.2.0",
Expand Down
21 changes: 0 additions & 21 deletions release.config.js

This file was deleted.

0 comments on commit 7faf708

Please sign in to comment.