diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 58b1b60..21f1c14 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,13 +1,13 @@ name: Release on: push: - branches: + branches: - 'master' - 'main' - 'next' - '*.*' pull_request: - branches: + branches: - 'master' - 'main' - 'next' @@ -28,16 +28,16 @@ jobs: runs-on: ubuntu-latest needs: install steps: - - name: Download install artifact - uses: actions/download-artifact@v4 - with: - name: install + - name: Download install artifact + uses: actions/download-artifact@v4 + with: + name: install - - name: Untar files - run: tar -xf install.tar + - name: Untar files + run: tar -xf install.tar - - name: Run tests - run: npm test + - name: Run tests + run: npm test functional-tests: name: Test electron@latest @@ -45,16 +45,16 @@ jobs: needs: install steps: - - name: Download install artifact - uses: actions/download-artifact@v4 - with: - name: install + - name: Download install artifact + uses: actions/download-artifact@v4 + with: + name: install - - name: Untar files - run: tar -xf install.tar + - name: Untar files + run: tar -xf install.tar - - name: Run tests - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run test:functional + - name: Run tests + run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run test:functional release: name: Release @@ -75,7 +75,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: "lts/*" + node-version: 'lts/*' - name: Install dependencies run: npm clean-install @@ -83,6 +83,9 @@ jobs: - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies run: npm audit signatures + - name: Build + run: npm run build + - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}