Skip to content

Commit

Permalink
feat: run release workflow after other workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
berishaerblin authored and mlec1 committed Sep 4, 2024
1 parent 33344cb commit 1b03a17
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Release
on:
push:
branches:
- main
workflow_run:
workflows: ["step.tech_matrix_prep", "Validate"]
types:
- completed

permissions:
contents: read # for checkout
Expand All @@ -16,20 +17,25 @@ jobs:
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
if: ${{ github.event.workflow_run.conclusion == 'success' }} # Ensures it only runs if both workflows passed
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"

- 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: Release
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
Expand Down

0 comments on commit 1b03a17

Please sign in to comment.