-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 969 Bytes
/
release.yml
File metadata and controls
37 lines (34 loc) · 969 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
29
30
31
32
33
34
35
36
37
name: Release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: read
id-token: write
jobs:
Release:
name: Release
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v6
with:
check-latest: true
registry-url: 'https://registry.npmjs.org'
- name: Update NPM
run: sudo npm install -g npm@latest
- name: Install
run: npm install
- name: Coverage
run: npm run coverage
- name: Upload
run: npm run codecov
- name: Build
run: npm run build
- name: Clean
run: rm -rf docs&&rm -rf coverage
- name: Publish
run: npm -v && npm publish --provenance --access public