Skip to content

Commit

Permalink
fix(workflow): lack of build step in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
przucidlo committed Jul 3, 2024
1 parent 5a92b39 commit 1258962
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Release
on:
push:
branches:
branches:
- 'master'
- 'main'
- 'next'
- '*.*'
pull_request:
branches:
branches:
- 'master'
- 'main'
- 'next'
Expand All @@ -28,33 +28,33 @@ 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
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: 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
Expand All @@ -75,14 +75,17 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
node-version: 'lts/*'

- name: Install dependencies
run: npm clean-install

- 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 }}
Expand Down

0 comments on commit 1258962

Please sign in to comment.