-
Notifications
You must be signed in to change notification settings - Fork 21
36 lines (33 loc) · 916 Bytes
/
release.yml
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
# release action with semantic release
name: Release
on:
workflow_dispatch:
permissions:
contents: read
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Get Release Token
id: get_workflow_token
uses: peter-murray/workflow-application-token-action@v3
with:
application_id: ${{ secrets.RELEASE_APP_ID }}
application_private_key: ${{ secrets.RELEASE_APP_CERT }}
- name: Semantic Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ steps.get_workflow_token.outputs.token }}