-
Notifications
You must be signed in to change notification settings - Fork 16
47 lines (38 loc) · 977 Bytes
/
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
44
45
46
47
name: Release
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
name: release
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
- name: Install packages
run: yarn
- name: Lint
run: yarn lint
- name: Lint tests
run: yarn lint:tests
- name: Test
run: yarn test
- name: Build
run: yarn build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.VL_BOT_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_AUTHOR_NAME: vlprojects-bot
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: vlprojects-bot
GIT_COMMITTER_EMAIL: [email protected]
run: npx semantic-release