Skip to content

Commit

Permalink
ci: Fix release job
Browse files Browse the repository at this point in the history
  • Loading branch information
debjitbis08 committed Nov 29, 2024
1 parent 4d025d4 commit e741068
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 20 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/update-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ jobs:
- name: Checkout the repository
uses: actions/checkout@v4
with:
ssh-key: "${{ secrets.COMMIT_KEY }}"
fetch-depth: 0 # Fetch all history for tags and branches

- name: Update release branch
with:
ssh-key: "${{ secrets.COMMIT_KEY }}"
run: |
# Get the latest tag
LATEST_TAG=$(git describe --tags --abbrev=0)
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ pnpm-debug.log*

# jetbrains setting folder
.idea/

sim8085_ed25519*
40 changes: 20 additions & 20 deletions release.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
* @type {import('semantic-release').GlobalConfig}
*/
export default {
branches: ["master"],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
[
'@semantic-release/changelog',
{
changelogFile: 'CHANGELOG.md',
},
branches: ["master"],
plugins: [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
changelogFile: "CHANGELOG.md",
},
],
"@semantic-release/npm", // Updates package.json version
[
"@semantic-release/git",
{
assets: ["package.json", "package-lock.json", "CHANGELOG.md"],
message: "release: Release ${nextRelease.version} [skip actions]\n\n${nextRelease.notes}",
},
],
"@semantic-release/github", // Creates GitHub release
],
'@semantic-release/npm', // Updates package.json version
[
"@semantic-release/git",
{
"assets": ["package.json", "package-lock.json", "CHANGELOG.md"],
"message": "release: Release ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
'@semantic-release/github', // Creates GitHub release
],
};
};

0 comments on commit e741068

Please sign in to comment.