Skip to content

Commit

Permalink
chore: apply deno@2 fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Oct 12, 2024
1 parent 0bb98d0 commit e50e379
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: CI
on:
push:
branches:
- "**"
- '**'
tags:
- "v**"
- 'v**'

env:
DENO_VERSION: 2.0
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
dryrun:
needs: [test]
name: "Publish (dry run)"
name: 'Publish (dry run)'
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
runs-on: ubuntu-latest
steps:
Expand All @@ -62,7 +62,6 @@ jobs:
- run: deno task build 1.2.3
- run: deno publish --no-check -c jsr.json --dry-run


# https://jsr.io/docs/publishing-packages#publishing-from-github-actions
# https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry
publish:
Expand All @@ -88,18 +87,18 @@ jobs:
VERSION=${GITHUB_REF#refs/tags/v}
deno task build $VERSION
- name: "Publish → jsr"
- name: 'Publish → jsr'
if: ${{ !contains(github.ref, '-next.') }}
run: deno publish --no-check -c jsr.json

- name: "Publish → npm"
- name: 'Publish → npm'
if: ${{ !contains(github.ref, '-next.') }}
run: npm publish --provenance --access public
working-directory: ./npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: "Publish → npm (pre-release)"
- name: 'Publish → npm (pre-release)'
if: ${{ contains(github.ref, '-next.') }}
run: npm publish --tag next --provenance --access public
working-directory: ./npm
Expand Down

0 comments on commit e50e379

Please sign in to comment.