Skip to content

Commit

Permalink
add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Jun 22, 2024
1 parent d55239c commit 77ee9fe
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ jobs:
jsr:
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
Expand All @@ -50,7 +46,7 @@ jobs:
check-latest: true
- name: Build
run: npm run build:deno
- name: Dry publish
run: cd deno && deno publish --dry-run
- name: Test
run: cd deno && deno test --allow-read deno
run: cd deno && deno test --allow-read
- name: Publish
run: cd deno && deno publish --dry-run
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish
on:
push:
branches:
- latest

jobs:
publish:
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
- uses: actions/setup-node@v4
with:
node-version: '20'
check-latest: true
- name: Build
run: npm run build:deno
- name: Publish
run: cd deno && deno publish

0 comments on commit 77ee9fe

Please sign in to comment.