Skip to content

Commit

Permalink
👷 run normal NPM process before JSR publish
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeelvalley committed Mar 26, 2024
1 parent 4167d31 commit 4b5b640
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/jsr-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@ on:
push:
branches:
- main

jobs:
build:
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
Expand All @@ -23,18 +30,14 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Install playwright
run: pnpm exec playwright install

- name: Build
run: pnpm build

publish:
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4
- name: Run tests
run: pnpm test

- name: Publish package
run: npx jsr publish

0 comments on commit 4b5b640

Please sign in to comment.