-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 955 Bytes
/
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
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
- name: Lint
run: deno lint
- name: Format
run: deno fmt --check
- 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