-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (41 loc) · 1.1 KB
/
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
37
38
39
40
41
name: Release
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
# Required to publish a GitHub release
contents: write
# Required to comment on issues and pull requests
issues: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "🪙 Generate a token"
id: generate-token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.SEMANTIC_RELEASE_APP_ID }}
private_key: ${{ secrets.SEMANTIC_RELEASE_KEY_PEM }}
- name: "☁️ Checkout repository"
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: "🚀 Release 🎉"
uses: cycjimmy/semantic-release-action@v4
with:
semantic_version: 22.0.5
branches: |
["main"]
extra_plugins: |
@semantic-release/[email protected]
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}