-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 1008 Bytes
/
testandpublish.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
name: Test_and_Publish
on:
push:
jobs:
test:
name: Test Application
runs-on: ubuntu-latest
steps:
- uses: pnpm/action-setup@v2
with:
version: 6.0.2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- run: pnpm install
- run: npm test
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage/lcov.info
fail_ci_if_error: true
verbose: true
- run: npm run build
- name: "Publish to NPM"
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: "public"
- name: "Create the docs directory locally in CI"
run: npx typedoc src/index.ts
- name: "Deploy 🚀"
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs