Skip to content

Commit

Permalink
fix(ci): improve release cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
xeroc committed Dec 1, 2023
1 parent ae4e5ec commit 580f147
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures

- name: Build release
run: npm run build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
20 changes: 16 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,28 @@
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/github",
"@semantic-release/exec",
{
"addReleases": true
"prepareCmd": "./release.sh ${nextRelease.version}"
}
],
[
"@semantic-release/exec",
"@semantic-release/git",
{
"prepareCmd": "./release.sh ${nextRelease.version}"
"assets": [
"versions.json",
"CHANGELOG.md",
"main.js"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/github",
{
"addReleases": true
}
]
]
Expand Down

0 comments on commit 580f147

Please sign in to comment.