diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2887c9d..fc31199 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,6 @@ on: jobs: version_and_release: runs-on: ubuntu-latest - needs: build_and_test permissions: contents: write # to be able to publish a GitHub release issues: write # to be able to comment on released issues @@ -19,15 +18,22 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Setup Node.js uses: actions/setup-node@v3 with: node-version: "lts/*" cache: "npm" + - 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: Test + run: npm test + - name: Release env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f0f4b3e..13e36c7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,9 +1,7 @@ name: Test on: - push: - branches: - - main + [push, pull_request] jobs: build_and_test: