removed flag from deno publish in ci.yml #6
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 | |
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 index.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 }} | |
- name: Publish to JSR | |
if: github.ref == 'refs/heads/main' | |
run: jsr publish | |
env: | |
JSR_AUTH_TOKEN: ${{ secrets.JSR_AUTH_TOKEN }} |