-
Notifications
You must be signed in to change notification settings - Fork 30
45 lines (40 loc) · 1.01 KB
/
Copy pathrelease.yml
File metadata and controls
45 lines (40 loc) · 1.01 KB
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
44
45
name: Release
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write # to enable use of OIDC for trusted publishing and npm provenance
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install
uses: voidzero-dev/setup-vp@v1
with:
cache: true
run-install: true
- name: Install semantic-release
run: |
vp add \
semantic-release \
@semantic-release/changelog \
@semantic-release/git \
@semantic-release/github \
@semantic-release/npm \
conventional-changelog-conventionalcommits \
-- --no-save
- name: Build
run: vp run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_PUSH_TOKEN }}
run: vpx semantic-release