Skip to content

Commit

Permalink
chore: prepare for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
vyfor committed Jan 2, 2025
1 parent 4792fd8 commit f555b4b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ jobs:
build:
name: Build ${{ matrix.target }}
runs-on: ${{ matrix.os }}
if: false
# if: needs.get-next-version.outputs.new-release-published == 'true'
if: needs.get-next-version.outputs.new-release-published == 'true'
needs:
- get-next-version
strategy:
Expand Down Expand Up @@ -113,8 +112,7 @@ jobs:
release:
runs-on: ubuntu-latest
if: needs.get-next-version.outputs.new-release-published == 'true'
# needs: [get-next-version, build]
needs: [get-next-version]
needs: [get-next-version, build]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
21 changes: 8 additions & 13 deletions .releaserc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,20 @@ module.exports = {
context.context.isServerUpdate = true;
}

console.log(commit);
const shortHash = commit.hash.substring(0, 7);

return {
type: commit.type,
scope: commit.scope,
subject: commit.subject || '',
hash: shortHash,
shortDesc: commit.subject || '',
body: commit.body || '',
footer: commit.footer || '',
notes: commit.notes || []
};
return {};
}
}
}
],
"@semantic-release/changelog",
"@semantic-release/github",
[
"@semantic-release/github",
{
"assets": "dist/*"
}
],
[
"@semantic-release/git",
{
Expand All @@ -52,4 +47,4 @@ module.exports = {
}
]
]
}
}

0 comments on commit f555b4b

Please sign in to comment.