-
Notifications
You must be signed in to change notification settings - Fork 44
77 lines (64 loc) · 1.74 KB
/
Copy pathsemantic-release.yml
File metadata and controls
77 lines (64 loc) · 1.74 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Semantic Release on Merge
on:
push:
branches:
- "main"
workflow_dispatch:
permissions:
contents: write
issues: write
pull-requests: write
jobs:
release-readiness:
name: Release Readiness
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.4"
tools: composer:v2
extensions: gd, imagick
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
- name: Validate Composer metadata
run: composer validate --no-check-publish
- name: Install root npm dependencies from lockfile
run: npm ci --ignore-scripts
- name: Audit runtime npm dependencies
run: npm audit --omit=dev
- name: Audit all npm dependencies
run: npm audit
- name: Lint PHP files
run: npm run lint:php
- name: Run static release check
run: npm run release:check -- --skip-smoke
- name: Run full release check with smoke coverage
timeout-minutes: 35
env:
EMULSIFY_STARTERKIT_TEST: "1"
EMULSIFY_STARTERKIT_STORYBOOK_BUILD: "1"
run: npm run release:check
release:
name: Attempt Semantic Release
runs-on: ubuntu-latest
needs: release-readiness
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@v6
with:
semantic_version: 25.0.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}