-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 949 Bytes
/
ci.yaml
File metadata and controls
35 lines (33 loc) · 949 Bytes
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
name: ci
on:
push:
branches: [main]
jobs:
release:
name: release
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref_name == github.event.repository.default_branch
env:
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
@semantic-release/commit-analyzer
@semantic-release/github
@semantic-release/release-notes-generator
conventional-changelog-conventionalcommits
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}