π·οΈ fix slow types. #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |