Skip to content

Commit

Permalink
feat(build): publish to jsr.io (#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrappachc authored Feb 8, 2025
1 parent ebe9f4d commit 1bfa9cb
Showing 1 changed file with 7 additions and 24 deletions.
31 changes: 7 additions & 24 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Package to npmjs
name: Publish Package

on:
release:
Expand All @@ -8,30 +8,13 @@ jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8

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

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Publish
run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish package
run: npx jsr publish

0 comments on commit 1bfa9cb

Please sign in to comment.