Skip to content

Commit 3e26466

Browse files
👷 Add Release CI
1 parent aac906c commit 3e26466

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/release.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release CI
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
release:
8+
name: Build, Test, and Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
with:
14+
ref: ${{ github.head_ref }}
15+
token: ${{ secrets.GH_PAT }}
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 16
21+
cache: 'npm'
22+
23+
- name: Install Dependencies
24+
run: npm ci
25+
26+
- name: Release
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
29+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
30+
run: npx semantic-release

0 commit comments

Comments
 (0)