Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Sep 9, 2024
1 parent 9a64652 commit 4c699ac
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ jobs:
if: |
github.event_name == 'push' ||
!startsWith(github.event.pull_request.head.label, 'dsherret:')
permissions:
contents: read
id-token: write
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
Expand All @@ -26,6 +23,7 @@ jobs:

- name: Install deno
uses: denoland/setup-deno@v1
version: canary

- uses: dprint/[email protected]
if: runner.os == 'Linux'
Expand All @@ -48,11 +46,22 @@ jobs:
- name: npm build
run: deno run -A ./scripts/build_npm.ts ${{steps.get_tag_version.outputs.TAG_VERSION}}

- name: Publish to JSR on tag
if: runner.os == 'Linux'
run: deno run -A jsr:@david/[email protected]
- name: npm publish
if: startsWith(github.ref, 'refs/tags/') && runner.os == 'Linux'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: cd npm && npm publish

jobs:
jsr:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Install deno
uses: denoland/setup-deno@v1
version: canary
- name: Publish to JSR on tag
run: deno run -A jsr:@david/[email protected]
1 change: 1 addition & 0 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@david/dax",
"version": "0.0.0",
"nodeModulesDir": false,
"tasks": {
"test": "deno test -A",
Expand Down

0 comments on commit 4c699ac

Please sign in to comment.