-
-
Notifications
You must be signed in to change notification settings - Fork 21
28 lines (28 loc) · 656 Bytes
/
release.yml
File metadata and controls
28 lines (28 loc) · 656 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
name: release
on:
push:
branches:
- 'master'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install Node & NPM
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install node_modules
run: npm ci
- name: Test
run: npm run test
- name: Build
run: npm run build
- name: Release
uses: cycjimmy/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}