-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (33 loc) · 1.4 KB
/
release-workflow.yml
File metadata and controls
33 lines (33 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
#
# SPDX-License-Identifier: CC0-1.0
# Release Workflow for rest-api-profil-lint-processor
# Uses the unified release orchestrator for NPM packages
name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+' # Stable: v1.0.0
- 'v[0-9]+.[0-9]+.[0-9]+-alpha*' # Alpha: v1.0.0-alpha.1
- 'v[0-9]+.[0-9]+.[0-9]+-beta*' # Beta: v1.0.0-beta.1
- 'v[0-9]+.[0-9]+.[0-9]+-rc*' # RC: v1.0.0-rc.1
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false # Queue releases, don't cancel partial releases
permissions:
contents: read # Best Security practice. Jobs only get read as base, and then permissions are added as needed
jobs:
release:
uses: diggsweden/reusable-ci/.github/workflows/release-orchestrator.yml@e1e1387d5b0399bb5edb00e40485746772344176 # v2.6.0
permissions:
contents: write # Create GitHub releases, push changelog commits
packages: write # Publish to GitHub Packages
id-token: write # Generate OIDC token for SLSA provenance
attestations: write # Attach SBOM attestations
security-events: write # Upload container vulnerability scan results
actions: read # Required for SLSA provenance
secrets: inherit
with:
artifacts-config: .github/artifacts.yml
file-pattern: 'CHANGELOG.md package.json package-lock.json'
release-publisher: github-cli