22#
33# SPDX-License-Identifier: CC0-1.0
44
5- # Description:
6- # This workflow handles automated releases using the unified release system
7- # from diggsweden/.github for NPM packages.
5+ # Release Workflow for rest-api-profil-lint-processor
6+ # Uses the unified release orchestrator for NPM packages
87---
98name : Release
109
@@ -25,41 +24,16 @@ permissions:
2524
2625jobs :
2726 release :
28- name : Release
29- if : startsWith(github.ref, 'refs/tags/v') # Only run for version tags
27+ uses : diggsweden/reusable-ci/.github/workflows/release-orchestrator.yml@v2
3028 permissions :
31- contents : write # Create GitHub releases, push changelog commits
32- packages : write # Publish NPM package to GitHub registry, push to ghcr.io
33- id-token : write # Generate OIDC token for package provenance and SLSA
34- actions : read # Required for SLSA provenance generation
29+ contents : write # Create GitHub releases, push changelog commits
30+ packages : write # Publish to GitHub Packages
31+ id-token : write # Generate OIDC token for SLSA provenance
32+ attestations : write # Attach SBOM attestations
3533 security-events : write # Upload container vulnerability scan results
36- attestations : write # Attach SBOM attestation to container images
37- issues : write # Close issues and add release comments
38- uses : diggsweden/reusable-ci/.github/workflows/release-orchestrator.yml@v1
34+ actions : read # Required for SLSA provenance
35+ secrets : inherit
3936 with :
40- # Project configuration
41- projectType : npm # Build system (reads version from package.json)
42- branch : main # Base branch for changelog generation
43-
44- # Artifact publisher configuration
45- artifactPublisher : npm-app-github # Publish to GitHub NPM registry
46- # Uses default Node version (22.x)
47-
48- # Container builder configuration
49- containerBuilder : containerimage-ghcr # Build Docker image and push to ghcr.io
50- # Defaults: linux/amd64, SLSA provenance, SBOM generation enabled
51-
52- # NPM specific - files to commit when version changes
53- file_pattern : " CHANGELOG.md package.json package-lock.json"
54-
55- # Changelog configuration
56- changelogCreator : git-cliff # Generate from conventional commits
57- # Uses default changelog format
58-
59- # Release publisher configuration
60- releasePublisher : github-cli # GitHub CLI better for NPM than JReleaser
61- release.generatesbom : true # Include SBOM in release assets
62- release.signartifacts : true # GPG sign all release artifacts
63-
64- # Release type auto-detected from tag (v1.0.0 = stable, v1.0.0-beta = prerelease)
65- secrets : inherit # Use org-level NPM_TOKEN and GPG keys if available
37+ artifacts-config : .github/artifacts.yml
38+ file-pattern : " CHANGELOG.md package.json package-lock.json"
39+ release-publisher : github-cli
0 commit comments