diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ec005e2..0cd2e5e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,8 +2,7 @@ name: distributions release on: push: - tags: - - 'v*.*.*' + branches: [master] concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -47,15 +46,35 @@ jobs: steps: - name: Github checkout uses: actions/checkout@v4 + - name: Use Node.js 20.x + uses: actions/setup-node@v4 + with: + node-version: 20.x + cache: 'npm' + - name: Generate changelog + uses: jaywcjlove/changelog-generator@main + id: changelog + with: + token: ${{ secrets.GITHUB_TOKEN }} - name: Download artifacts uses: actions/download-artifact@v4 with: path: out/make/ merge-multiple: true - - name: echo folder - run: ls -R ./ + - name: Build Release + uses: jaywcjlove/create-tag-action@main + id: tag_release + with: + prerelease: true + token: ${{ secrets.GITHUB_TOKEN }} + body: | + ${{ steps.changelog.outputs.compareurl }} + + ${{ steps.changelog.outputs.changelog }} + - name: Release App uses: "marvinpinto/action-automatic-releases@latest" + if: steps.tag_release.outputs.successful with: prerelease: false repo_token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/package-lock.json b/package-lock.json index 66ea3b2..703c7cf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "DocKit", - "version": "0.0.1", + "version": "0.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "DocKit", - "version": "0.0.1", + "version": "0.0.2", "license": "Apache-2.0", "dependencies": { "buffer": "^6.0.3", diff --git a/package.json b/package.json index d2b2907..eb9a573 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "DocKit", "productName": "DocKit", "private": true, - "version": "0.0.1", + "version": "0.0.2", "main": "dist/src/electron/main.js", "description": "A faster, better and more stable NoSQL desktop tools", "author": "geekfun ",