From 947ac4392ecb561215209055ec11a62517aa0a35 Mon Sep 17 00:00:00 2001 From: JulienChampagnol Date: Fri, 6 Sep 2024 12:13:44 +0200 Subject: [PATCH] fix(CICD): test publish release --- .github/workflows/CICD.yaml | 15 ++++++++++----- package.json | 1 - 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CICD.yaml b/.github/workflows/CICD.yaml index 259dfcb..0542ee0 100644 --- a/.github/workflows/CICD.yaml +++ b/.github/workflows/CICD.yaml @@ -27,23 +27,28 @@ jobs: matrix: os: [ubuntu-latest, windows-latest] steps: - - name: Check out Git repository + - name: Checkout uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "3.10" - - name: Install Node.js, NPM and Yarn + - name: Install Node.js, NPM uses: actions/setup-node@v4 with: - node-version: 20 - - name: Publish version + node-version: latest + - name: Package run: | jq '.version = "${{ needs.semantic.outputs.version }}"' package.json > temp && mv temp package.json cat package.json rm -rf node_modules package-lock.json npm install - npm run publish + npm run package shell: bash + - name: Release + uses: softprops/action-gh-release@v2 + with: + prerelease: if [[ ${{ needs.semantic.outputs.version }} == *"rc"* ]]; then true; else false; fi + files: vease-${{ needs.semantic.outputs.version }}.zip merge: runs-on: ubuntu-latest diff --git a/package.json b/package.json index e5bacc4..60dac1d 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,6 @@ "build": "nuxi build --prerender", "test": "vitest", "package": "npm run build && electron-builder build --publish=never", - "publish": "npm run build && electron-builder build --publish=always", "postinstall": "npm run install_back && npm run install_viewer" }, "repository": {