Skip to content

Commit

Permalink
fix: use @sanity/semantic-release-preset
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Aug 17, 2022
1 parent df3919a commit fb0c785
Show file tree
Hide file tree
Showing 4 changed files with 277 additions and 1,096 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,16 @@ jobs:
if: inputs.release == true
steps:
- uses: actions/checkout@v3
with:
# Need to fetch entire commit history to
# analyze every commit since last release
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: lts/*
cache: 'npm'
- run: npm install
# Branches that will release new versions is defined in .releaserc.json
# Branches that will release new versions are defined in .releaserc.json
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
27 changes: 2 additions & 25 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,7 @@
{
"extends": "@sanity/semantic-release-preset",
"branches": [
{"name": "main", "channel": "studio-v3", "prerelease": "v3-studio"},
{"name": "main-post-ga"}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/npm",
{
"tarballDir": "release"
}
],
[
"@semantic-release/github",
{
"assets": "release/*.tgz"
}
],
[
"@semantic-release/git",
{
"message": "chore(release): ${nextRelease.version} [skip ci]"
}
]
],
"preset": "angular"
]
}
Loading

0 comments on commit fb0c785

Please sign in to comment.