Skip to content

refactor: improve patch logic, add JSDoc documentation, and update CI… #59

refactor: improve patch logic, add JSDoc documentation, and update CI…

refactor: improve patch logic, add JSDoc documentation, and update CI… #59

Workflow file for this run

name: Release
on:
push:
branches: [main]
concurrency: ${{ github.workflow }}-${{ github.ref }}
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
release:
name: Release & Publish
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Build
run: bun run build
- name: Create Release PR or Publish to NPM
id: changesets
uses: changesets/action@v1
with:
publish: bun run publish-packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to JSR
# Only publish to JSR if a release was actually published to NPM
if: steps.changesets.outputs.published == 'true'
run: cd packages/obj-diff && npx jsr publish --allow-dirty