-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.23 KB
/
frontend-release.yml
File metadata and controls
48 lines (41 loc) · 1.23 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
name: Frontend Release
on:
push:
branches: [main]
paths:
- 'frontend/**'
- '.github/workflows/frontend-**'
permissions:
contents: write
issues: write
pull-requests: write
packages: write
jobs:
release:
runs-on: ubuntu-latest
outputs:
new-release-published: ${{ steps.semantic.outputs.new-release-published }}
release-version: ${{ steps.semantic.outputs.release-version }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-node@v6
with:
node-version: "lts/*"
- run: npm install -g semantic-release conventional-changelog-conventionalcommits @semantic-release/exec
- name: Create Release
id: semantic
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: ./frontend
run: npx semantic-release
docker:
needs: release
if: ${{ needs.release.outputs.new-release-published == 'true' }}
uses: ./.github/workflows/frontend-docker-publish.yml
with:
version: ${{ needs.release.outputs.release-version }}
next_public_umbraco_base_url: https://cms.methodconf.com/
next_public_site_url: https://www.methodconf.com/
secrets: inherit