-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
52 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,6 @@ jobs: | |
with: | ||
node-version: 20 | ||
|
||
- name: Get package version | ||
run: node utils/get-version.js >> $GITHUB_ENV | ||
|
||
- name: install dependencies electron-app | ||
run: npm install | ||
working-directory: electron-app | ||
|
@@ -44,6 +41,9 @@ jobs: | |
run: npm run test | ||
working-directory: server | ||
|
||
- name: Get package version | ||
run: node utils/get-version.js >> $GITHUB_ENV | ||
|
||
- name: Tag if new version | ||
uses: pkgdeps/[email protected] | ||
with: | ||
|
@@ -89,13 +89,10 @@ jobs: | |
with: | ||
node-version: 20 | ||
|
||
- name: Get package version | ||
run: node utils/get-version.js >> $GITHUB_ENV | ||
|
||
- name: Set version in source | ||
run: |- | ||
node utils/set-version.js electron-app/package.json ${{ env.PACKAGE_VERSION }} | ||
node utils/set-version.js electron-app/src/index.ts ${{ env.PACKAGE_VERSION }} | ||
node utils/set-version.js electron-app/package.json | ||
node utils/set-version.js electron-app/src/index.ts | ||
- name: install dependencies electron-app | ||
run: npm install | ||
|
@@ -160,8 +157,10 @@ jobs: | |
with: | ||
node-version: 20 | ||
|
||
- name: Get package version | ||
run: node utils/get-version.js >> $GITHUB_ENV | ||
- name: Set version in source | ||
run: |- | ||
node utils/set-version.js electron-app/package.json | ||
node utils/set-version.js electron-app/src/index.ts | ||
- name: install dependencies electron-app | ||
run: npm install | ||
|
@@ -171,11 +170,6 @@ jobs: | |
run: npm install | ||
working-directory: server | ||
|
||
- name: Set version in source | ||
run: |- | ||
node utils/set-version.js electron-app/package.json ${{ env.PACKAGE_VERSION }} | ||
node utils/set-version.js electron-app/src/index.ts ${{ env.PACKAGE_VERSION }} | ||
- name: compile server | ||
env: | ||
CI: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: build | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build_job_windows: | ||
runs-on: self-hosted | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@master | ||
with: | ||
node-version: 20 | ||
|
||
- name: Get package version | ||
run: node utils/get-version.js >> $GITHUB_ENV | ||
|
||
- name: install dependencies electron-app | ||
run: npm install | ||
working-directory: electron-app | ||
|
||
- name: install dependencies server | ||
run: npm install | ||
working-directory: server | ||
|
||
- name: Set version in source | ||
run: |- | ||
node utils/set-version.js electron-app/package.json ${{ env.PACKAGE_VERSION }} | ||
node utils/set-version.js electron-app/src/index.ts ${{ env.PACKAGE_VERSION }} | ||
- name: check package | ||
run: cat electron-app/package.json | ||
|
||
- name: check source | ||
run: cat electron-app/src/index.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters