-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (41 loc) · 966 Bytes
/
release.yaml
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
48
49
50
name: build-and-release
'on':
push:
branches:
- master
permissions:
contents: write
issues: write
packages: write
pull-requests: write
jobs:
made-with-tpgha:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Setting up NodeJs
id: setup-node-js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: npm ci
run: npm ci
shell: bash
- name: npm run lint
run: npm run lint
shell: bash
- name: npm run test
run: npm run test
shell: bash
- name: npm run build
run: npm run build
shell: bash
- name: npm run release
run: npx semantic-release
shell: bash
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}