-
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (36 loc) · 1.05 KB
/
semantic-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
42
43
name: Semantic Release
on:
workflow_run:
workflows: ['CI']
types:
- completed
branches:
- main
jobs:
release:
name: Semantic Release
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_AUTHOR_NAME: 'github-actions-shell'
GIT_AUTHOR_EMAIL: 'github-actions[bot]@users.noreply.github.com'
GIT_COMMITTER_NAME: 'github-actions-shell'
GIT_COMMITTER_EMAIL: 'github-actions[bot]@users.noreply.github.com'
run: 'pnpm exec multi-semantic-release'