Skip to content

Commit

Permalink
👷 setup JSR
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeelvalley committed Mar 26, 2024
1 parent 4e9c13e commit eec54ee
Show file tree
Hide file tree
Showing 6 changed files with 2,428 additions and 39 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/jsr-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: JSR Publish

on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-20.04

permissions:
contents: read
id-token: write

strategy:
matrix:
node-version: [20]

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Publish package
run: npx jsr publish --allow-slow-types
36 changes: 0 additions & 36 deletions .github/workflows/npm-publish.yml

This file was deleted.

Loading

0 comments on commit eec54ee

Please sign in to comment.