@platform-mesh/portal-server-lib 0.8.0 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
name: auto-labeler
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types:
|
|
6
|
+
- opened
|
|
7
|
+
- synchronize
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
pull-requests: write
|
|
12
|
+
issues: write
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
auto-labeler:
|
|
16
|
+
if: github.event.pull_request.head.repo.full_name == github.repository
|
|
17
|
+
uses: platform-mesh/.github/.github/workflows/job-auto-labeler.yml@main
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: ci
|
|
2
|
+
|
|
2
3
|
on:
|
|
3
4
|
push:
|
|
4
5
|
branches:
|
|
@@ -8,13 +9,52 @@ on:
|
|
|
8
9
|
- opened
|
|
9
10
|
- synchronize
|
|
10
11
|
|
|
12
|
+
permissions:
|
|
13
|
+
contents: write
|
|
14
|
+
id-token: write
|
|
15
|
+
|
|
11
16
|
concurrency:
|
|
12
17
|
group: ${{ github.ref }}
|
|
13
18
|
cancel-in-progress: true
|
|
14
19
|
|
|
15
20
|
jobs:
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
# ──────────────────────────────────────────────
|
|
22
|
+
# Always-run jobs (PR + main)
|
|
23
|
+
# ──────────────────────────────────────────────
|
|
24
|
+
build:
|
|
25
|
+
uses: platform-mesh/.github/.github/workflows/job-node-test.yml@main
|
|
26
|
+
secrets: inherit
|
|
27
|
+
|
|
28
|
+
# ──────────────────────────────────────────────
|
|
29
|
+
# Quality gate (aggregates required checks)
|
|
30
|
+
# ──────────────────────────────────────────────
|
|
31
|
+
quality-gate:
|
|
32
|
+
if: always()
|
|
33
|
+
permissions: {}
|
|
34
|
+
needs: [build]
|
|
35
|
+
runs-on: ubuntu-latest
|
|
36
|
+
timeout-minutes: 1
|
|
37
|
+
steps:
|
|
38
|
+
- name: Check results
|
|
39
|
+
run: |
|
|
40
|
+
if [[ "${{ needs.build.result }}" != "success" ]]; then
|
|
41
|
+
echo "build failed"
|
|
42
|
+
exit 1
|
|
43
|
+
fi
|
|
44
|
+
|
|
45
|
+
# ──────────────────────────────────────────────
|
|
46
|
+
# Release jobs (main branch only)
|
|
47
|
+
# ──────────────────────────────────────────────
|
|
48
|
+
create-version:
|
|
49
|
+
if: github.ref == 'refs/heads/main'
|
|
50
|
+
uses: platform-mesh/.github/.github/workflows/job-create-version.yml@main
|
|
51
|
+
secrets: inherit
|
|
52
|
+
|
|
53
|
+
publish:
|
|
54
|
+
if: github.ref == 'refs/heads/main'
|
|
55
|
+
needs: [create-version, build]
|
|
56
|
+
uses: platform-mesh/.github/.github/workflows/job-node-publish.yml@main
|
|
18
57
|
secrets: inherit
|
|
19
58
|
with:
|
|
59
|
+
version: ${{ needs.create-version.outputs.strictVersion }}
|
|
20
60
|
environment: npmjs:@platform-mesh/portal-server-lib
|