-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (53 loc) · 1.55 KB
/
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
48
49
50
51
52
53
54
55
56
57
name: release
on:
push:
branches: [master]
jobs:
release:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node-version: [20.x]
runs-on: ${{ matrix.os }}
timeout-minutes: 20
steps:
- name: Github checkout
uses: actions/checkout@v4
if: matrix.os == 'ubuntu-latest'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- run: npm run lint:check
- run: npm audit --audit-level=critical
- run: npm run test:ci
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: build 🔧
run: npm run build
# - name: Generate changelog
# uses: jaywcjlove/changelog-generator@main
# id: changelog
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# - name: Build Release
# uses: jaywcjlove/create-tag-action@main
# id: tag_release
# with:
# release: true
# token: ${{ secrets.GITHUB_TOKEN }}
# body: |
# ${{ steps.changelog.outputs.compareurl }}
#
# ${{ steps.changelog.outputs.changelog }}
- name: Publish package on NPM 📦
# if: steps.tag_release.outputs.successful
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}