Skip to content

Commit 00f5413

Browse files
committed
ci: use reuseable ci 2.6.0
Signed-off-by: Josef Andersson <josef.andersson@digg.se>
1 parent 3655862 commit 00f5413

File tree

6 files changed

+14
-26
lines changed

6 files changed

+14
-26
lines changed

.github/artifacts.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
# Artifacts Configuration for rest-api-profil-lint-processor
66
# NPM CLI application with container
77
# Package tarballs will be attached to GitHub Release as assets
8-
98
artifacts:
109
- name: raplp
1110
project-type: npm
@@ -15,7 +14,6 @@ artifacts:
1514
- github-packages
1615
config:
1716
node-version: 24
18-
1917
# Container builds from source (no artifact dependency)
2018
# Containerfile copies source code and runs npm install
2119
containers:

.github/workflows/openssf-scorecard.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
22
#
33
# SPDX-License-Identifier: CC0-1.0
4-
5-
---
64
name: OpenSSF Scorecard Analysis
75
on:
86
schedule:
@@ -11,10 +9,8 @@ on:
119
# Wednesdays at 02:20 UTC
1210
- cron: "20 2 * * 3"
1311
workflow_dispatch:
14-
1512
permissions:
1613
contents: read
17-
1814
jobs:
1915
scorecard-analysis:
2016
permissions:

.github/workflows/pullrequest-workflow.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,32 @@
11
# SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
22
#
33
# SPDX-License-Identifier: CC0-1.0
4-
5-
---
64
name: Pull Request Workflow
7-
85
on:
96
pull_request:
107
branches:
118
- main
129
- develop
1310
- 'release/**'
1411
- 'feature/**'
15-
1612
permissions:
1713
contents: read # Best Security practice. Jobs only get read as base, and then permissions are added as needed
18-
1914
jobs:
2015
pr-checks:
21-
uses: diggsweden/reusable-ci/.github/workflows/pullrequest-orchestrator.yml@e29145e720cef0b86ef147c72c2d001b5ac6c8b9 # v2.4.2
16+
uses: diggsweden/reusable-ci/.github/workflows/pullrequest-orchestrator.yml@e1e1387d5b0399bb5edb00e40485746772344176 # v2.6.0
2217
secrets: inherit # Pass org-level secrets (NPM token if private packages)
2318
permissions:
2419
contents: read # Clone repository and read source code
2520
packages: read # Access private NPM packages from GitHub registry
2621
security-events: write # Upload ESLint/security findings to GitHub Security tab
2722
with:
2823
project-type: npm
29-
# Use just+mise linting (replaces megalint, commitlint, licenselint)
30-
linters.justmiselint: true
24+
# Use devbase-check linting (replaces megalint, commitlint, licenselint)
25+
linters.devbasecheck: true
3126
linters.megalint: false
3227
linters.commitlint: false
3328
linters.licenselint: false
3429
linters.publiccodelint: true
35-
3630
test:
3731
needs: [pr-checks]
3832
if: always() # Run tests even if linting fails (get full CI feedback)

.github/workflows/release-dev-workflow.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,17 @@
1717
# - NPM package: @diggsweden/rest-api-profil-lint-processor@0.5.9-dev-feat-name-abc1234
1818
# - Container image: ghcr.io/diggsweden/rest-api-profil-lint-processor:0.5.9-dev-feat-name-abc1234
1919
# - Tagged with 'dev' (not 'latest')
20-
2120
name: Release Workflow Dev
22-
2321
on:
2422
workflow_dispatch:
25-
2623
permissions:
2724
contents: read
28-
2925
jobs:
3026
dev-release:
3127
permissions:
3228
contents: read
3329
packages: write
34-
uses: diggsweden/reusable-ci/.github/workflows/release-dev-orchestrator.yml@e29145e720cef0b86ef147c72c2d001b5ac6c8b9 # v2.4.2
30+
uses: diggsweden/reusable-ci/.github/workflows/release-dev-orchestrator.yml@e1e1387d5b0399bb5edb00e40485746772344176 # v2.6.0
3531
with:
3632
project-type: npm
3733
package-scope: '@diggsweden'

.github/workflows/release-workflow.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,22 @@
44

55
# Release Workflow for rest-api-profil-lint-processor
66
# Uses the unified release orchestrator for NPM packages
7-
---
87
name: Release
9-
108
on:
119
push:
1210
tags:
1311
- 'v[0-9]+.[0-9]+.[0-9]+' # Stable: v1.0.0
1412
- 'v[0-9]+.[0-9]+.[0-9]+-alpha*' # Alpha: v1.0.0-alpha.1
1513
- 'v[0-9]+.[0-9]+.[0-9]+-beta*' # Beta: v1.0.0-beta.1
1614
- 'v[0-9]+.[0-9]+.[0-9]+-rc*' # RC: v1.0.0-rc.1
17-
1815
concurrency:
1916
group: release-${{ github.ref }}
2017
cancel-in-progress: false # Queue releases, don't cancel partial releases
21-
2218
permissions:
2319
contents: read # Best Security practice. Jobs only get read as base, and then permissions are added as needed
24-
2520
jobs:
2621
release:
27-
uses: diggsweden/reusable-ci/.github/workflows/release-orchestrator.yml@e29145e720cef0b86ef147c72c2d001b5ac6c8b9 # v2.4.2
22+
uses: diggsweden/reusable-ci/.github/workflows/release-orchestrator.yml@e1e1387d5b0399bb5edb00e40485746772344176 # v2.6.0
2823
permissions:
2924
contents: write # Create GitHub releases, push changelog commits
3025
packages: write # Publish to GitHub Packages

.yamlfmt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
exclude:
6+
- apis/
7+
- node_modules/
8+
- dist/
9+
- coverage/

0 commit comments

Comments
 (0)