Skip to content

Commit

Permalink
Prepare publish to JSR
Browse files Browse the repository at this point in the history
  • Loading branch information
zjkmxy committed Feb 16, 2025
1 parent e859ae5 commit 4765df0
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ permissions:
checks: write
contents: read
packages: write
id-token: write

jobs:
publish:
Expand All @@ -24,28 +25,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"
- name: Set up Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Install dependencies
run: deno install --allow-scripts
- name: DNT build
run: deno run -A ./build.ts
- name: Login
run: |
pnpm set registry "http://npm.pkg.github.com/"
pnpm set "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}"
- name: Publish
- name: Publish package
run:
cd dist && pnpm publish --no-git-checks
deno publish

0 comments on commit 4765df0

Please sign in to comment.