didnt need to add jsr publish. removed it from ci.yml #12
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
id-token: write # Required for requesting the JWT | |
contents: read # Required for actions/checkout | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: Cache Deno modules | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/deno | |
key: ${{ runner.os }}-deno-${{ hashFiles('**/import_map.json') }} | |
restore-keys: | | |
${{ runner.os }}-deno- | |
- name: Install dependencies | |
run: deno cache main.ts | |
- name: Run tests | |
run: deno test | |
- name: Publish to Deno | |
if: github.ref == 'refs/heads/main' | |
run: deno publish | |
env: | |
DENO_AUTH_TOKEN: ${{ secrets.DENO_AUTH_TOKEN }} |