-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.18 KB
/
release.yaml
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
name: 📦 Release Workflow
on:
# This workflow is called by the CI/CD Workflow (see ./cicd.yaml)
workflow_call:
secrets:
SEMANTIC_RELEASE_TOKEN: { required: true }
# This workflow can be manually triggered
workflow_dispatch:
jobs:
release:
name: 📦 Release
runs-on: ubuntu-latest
permissions:
attestations: write # to generate artifact attestations for dist assets
contents: write # to create a release
issues: write # to be able to comment on released issues
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: Install Dependencies
run: npm ci --include=dev
- name: Build Dist Assets
run: npm run build
- name: Run Semantic-Release
id: semantic-release
uses: cycjimmy/semantic-release-action@v4
with:
extra_plugins: |
@aensley/semantic-release-openapi@1.1.8
@semantic-release/changelog@6.0.3
@semantic-release/git@10.0.1
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}