Skip to content

Commit

Permalink
fix version (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrehault authored Apr 3, 2024
1 parent bed5549 commit f22b7be
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ jobs:
- uses: actions/setup-node@master
with:
node-version: 20

- name: Get package version
run: node -p -e '`PACKAGE_VERSION=${require("./package.json").version}`' >> $GITHUB_ENV

- name: Set version in source
run: |-
sed -i "s#99999\.99999\.99999#${{ env.PACKAGE_VERSION }}#" electron-app/src/index.ts
sed -i "4s/0\.0\.0/${{ env.PACKAGE_VERSION }}/" electron-app/package.json
- name: install dependencies electron-app
run: npm install
working-directory: electron-app
Expand All @@ -40,14 +49,6 @@ jobs:
run: npm run test
working-directory: server

- name: Get package version
run: node -p -e '`PACKAGE_VERSION=${require("./package.json").version}`' >> $GITHUB_ENV

- name: Set version in source
run: |-
sed -i "s#99999\.99999\.99999#${{ env.PACKAGE_VERSION }}#" electron-app/src/index.ts
sed -i "4s/0\.0\.0/{{ env.PACKAGE_VERSION }}/" electron-app/package.json
- name: Tag if new version
uses: pkgdeps/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nuclia-sync-agent-app",
"version": "1.2.8",
"version": "1.2.9",
"description": "This is a Nuclia Sync Agent App",
"main": "build/index.js",
"scripts": {
Expand Down

0 comments on commit f22b7be

Please sign in to comment.