Skip to content

Update cd.yml

Update cd.yml #54

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will install Deno then run `deno lint` and `deno test`.
# For more information see: https://github.com/denoland/setup-deno
name: Continous Integration
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
ci:
runs-on: ubuntu-latest
env:
VERSION: ${{ github.GITHUB_REF_NAME }}
steps:
- name: Setup repo
uses: actions/checkout@v3
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v2.x
- name: Lint
run: deno lint
- name: Test
run: deno test
- name: Dry Run Release to JSR
run: |
deno publish --dry-run