@@ -122,6 +122,10 @@ jobs:
122122 sudo apt-get install -y rpm
123123
124124 - name : Build Electron app
125+ env :
126+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
127+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
128+ NODE_OPTIONS : " --max_old_space_size=4096"
125129 run : |
126130 if [ "$RUNNER_OS" == "Windows" ]; then
127131 pnpm run electron:build:win
@@ -131,6 +135,15 @@ jobs:
131135 pnpm run electron:build:linux
132136 fi
133137
138+ - name : Commit and Tag Release
139+ run : |
140+ git pull
141+ git add package.json pnpm-lock.yaml changelog.md
142+ git commit -m "chore: release version ${{ steps.bump_version.outputs.new_version }}"
143+ git tag "v${{ steps.bump_version.outputs.new_version }}"
144+ git push
145+ git push --tags
146+
134147 - name : Upload Electron Build as Release Assets
135148 uses : softprops/action-gh-release@v2
136149 with :
@@ -145,16 +158,6 @@ jobs:
145158 env :
146159 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
147160
148- # Commit and Tag Release
149- - name : Commit and Tag Release
150- run : |
151- git pull
152- git add package.json pnpm-lock.yaml changelog.md
153- git commit -m "chore: release version ${{ steps.bump_version.outputs.new_version }}"
154- git tag "v${{ steps.bump_version.outputs.new_version }}"
155- git push
156- git push --tags
157-
158161 - name : Update Stable Branch
159162 run : |
160163 if ! git checkout stable 2>/dev/null; then
0 commit comments