Skip to content

Commit

Permalink
build: update semantic release config (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt authored Sep 22, 2021
1 parent 1cafc68 commit ff21c0c
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 26 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,17 @@ jobs:
- run: npm run test:all
env:
GOOGLE_MAPS_API_KEY: ${{ secrets.SYNCED_GOOGLE_MAPS_API_KEY_SERVICES }}
- name: Semantic Release
- name: Release
uses: cycjimmy/semantic-release-action@v2
if: success()
with:
extra_plugins: |
"@semantic-release/commit-analyzer"
"@semantic-release/release-notes-generator"
"@semantic-release/npm
"@semantic-release/git
"@semantic-release/github
@semantic-release/commit-analyzer
semantic-release-interval
@semantic-release/release-notes-generator
@semantic-release/git
@semantic-release/github
@semantic-release/npm
@googlemaps/semantic-release-config
env:
GH_TOKEN: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
NPM_TOKEN: ${{ secrets.NPM_WOMBAT_TOKEN }}
Expand Down
66 changes: 56 additions & 10 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -1,10 +1,56 @@
branches:
- master
plugins:
- "@semantic-release/commit-analyzer"
- "@semantic-release/release-notes-generator"
- "@semantic-release/npm"
- "@semantic-release/git"
- "@semantic-release/github"
options:
debug: true
{
plugins:
[
[
"@semantic-release/commit-analyzer",
{ releaseRules: [{ type: "docs", scope: "README", release: "patch" }] },
],
["semantic-release-interval", { duration: 1, units: "week" }],
[
"@semantic-release/release-notes-generator",
{
preset: "conventionalcommits",
presetConfig:
{
types:
[
{ type: "feat", section: "Features" },
{ type: "feature", section: "Features" },
{ type: "fix", section: "Bug Fixes" },
{ type: "perf", section: "Performance Improvements" },
{ type: "revert", section: "Reverts" },
{ type: "docs", section: "Documentation", hidden: false },
{ type: "style", section: "Styles", hidden: false },
{
type: "chore",
section: "Miscellaneous Chores",
hidden: false,
},
{
type: "refactor",
section: "Code Refactoring",
hidden: false,
},
{ type: "test", section: "Tests", hidden: false },
{ type: "build", section: "Build System", hidden: false },
{
type: "ci",
section: "Continuous Integration",
hidden: false,
},
],
},
},
],
"@semantic-release/github",
"@semantic-release/npm",
"@semantic-release/git",
],
options: { debug: true },
branches:
[
"master",
{ name: "beta", prerelease: true },
{ name: "alpha", prerelease: true },
],
}
9 changes: 0 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,5 @@
"publishConfig": {
"registry": "https://wombat-dressing-room.appspot.com",
"access": "public"
},
"release": {
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/github"
]
}
}

0 comments on commit ff21c0c

Please sign in to comment.