-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.13 KB
/
publish.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
name: Publish Workspace
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Deno
uses: denoland/setup-deno@v1
with:
deno-version: 2.0.0-rc.5
- name: Instal npm:prettier
run:
deno install --global --allow-env --allow-read --allow-sys
--allow-write npm:prettier@latest
- name: Lint
run: deno lint
- name: Prettify
run: deno run prettify
- name: Test
run: deno test --coverage
- name: Generate Coverage
run: deno coverage --lcov coverage/ > coverage.lcov
- name: Publish Coverage
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to JSR
run: deno publish