2023-09-17 00:13:37 +02:00
|
|
|
name: Release
|
2024-07-18 11:12:13 +02:00
|
|
|
|
2023-09-17 00:13:37 +02:00
|
|
|
on:
|
2023-09-17 01:30:04 +02:00
|
|
|
workflow_run:
|
|
|
|
workflows:
|
2024-07-18 11:12:13 +02:00
|
|
|
- "Golang"
|
2023-09-17 01:30:04 +02:00
|
|
|
types: [ "completed" ]
|
2023-09-17 00:13:37 +02:00
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- rc
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read # for checkout
|
2024-07-18 11:12:13 +02:00
|
|
|
attestations: read # for artifacts download
|
2023-09-17 00:13:37 +02:00
|
|
|
|
|
|
|
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
|
2023-09-17 00:13:37 +02:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Setup Node.js
|
2024-07-18 11:18:55 +02:00
|
|
|
uses: actions/setup-node@v4
|
2023-09-17 00:13:37 +02:00
|
|
|
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 }}
|
|
|
|
|
2023-09-17 00:13:37 +02:00
|
|
|
- name: Release
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
run: npx semantic-release
|