Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 17 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,33 +52,27 @@ jobs:
needs: build
if: github.ref == 'refs/heads/main'
permissions:
contents: write
contents: write # for making github release
pull-requests: write # for commenting release version
issues: write # for commenting release version
steps:
- name: Checkout
id: checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
with:
persist-credentials: false
- name: Download dist
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
with:
name: dist
path: dist/
- run: npm install -g semantic-release@22.0.6 semantic-release-export-data@v1.0.1
- run: npx semantic-release@22.0.6 --dry-run
id: get-next-version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Stamp version
if: steps.get-next-version.outputs.new-release-published == 'true'
shell: bash
run: |
set -eo pipefail
dist/rcedit-x64.exe dist/rcedit-x86.exe --set-product-version $VERSION --set-file-version $VERSION
dist/rcedit-x86.exe -h | grep -q "Rcedit v$VERSION"
dist/rcedit-x86.exe dist/rcedit-x64.exe --set-product-version $VERSION --set-file-version $VERSION
dist/rcedit-x64.exe -h | grep -q "Rcedit v$VERSION"
env:
VERSION: ${{ steps.get-next-version.outputs.new-release-version }}
- name: Setup Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: 20
cache: npm
- name: Install semantic-release plugins
run: npm ci
- name: Run semantic release
run: npx semantic-release@22.0.6
if: steps.get-next-version.outputs.new-release-published == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: electron/semantic-trusted-release@03517840010ba30fe5264f4875f4cff066b658d1 # v1.1.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Default/
ipch/
build/
node_modules/

*.swp
*.sdf
Expand Down
7 changes: 6 additions & 1 deletion .releaserc.json

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: @semantic-release/commit-analyzer, @semantic-release/release-notes-generator and @semantic-release/github are transitively pulled via whatever version of semantic-release is depended on by @semantic-release/exec, is that setup expected/acceptable or should we explicitly depend on those plugins instead?

Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{
"plugins": [
"semantic-release-export-data",
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/exec",
{
"prepareCmd": "bash scripts/stamp-version.sh ${nextRelease.version}"
}
],
[
"@semantic-release/github",
{
Expand Down
Loading
Loading