Skip to content

Commit

Permalink
dx: JSR publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
iwoplaza committed Dec 18, 2024
1 parent e4e1970 commit dd2d730
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/publish-to-jsr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish to JSR

on:
release:
types: [published]
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: https://registry.npmjs.org/
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --recursive --frozen-lockfile

- name: Check
run: pnpm check

- run: npx jsr publish
working-directory: ./packages/typed-binary
2 changes: 1 addition & 1 deletion packages/typed-binary/jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iwoplaza/typed-binary",
"version": "4.3.0-alpha.0",
"version": "4.3.0-alpha.1",
"license": "MIT",
"exports": "./src/index.ts",
"publish": {
Expand Down

0 comments on commit dd2d730

Please sign in to comment.