Skip to content

Commit

Permalink
fix(CICD): test publish release
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienChampagnol committed Sep 6, 2024
1 parent 7dd0ada commit 947ac43
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/CICD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 947ac43

Please sign in to comment.