yanic/.github/workflows/release.yml

54 lines
1.3 KiB
YAML
Raw Normal View History

name: Release
2024-07-18 11:12:13 +02:00
on:
workflow_run:
workflows:
2024-07-18 11:12:13 +02:00
- "Golang"
types: [ "completed" ]
branches:
- main
- rc
permissions:
contents: read # for checkout
2024-07-18 11:12:13 +02:00
attestations: read # for artifacts download
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
steps:
- name: Checkout
2024-07-18 11:18:55 +02:00
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
2024-07-18 11:18:55 +02:00
uses: actions/setup-node@v4
with:
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
2024-07-18 11:12:13 +02:00
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
pattern: build-*
path: build/
merge-multiple: true
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release