feat(build): 💚 Hopefully fix CI

This commit is contained in:
Jesse Wierzbinski 2024-06-07 14:43:28 -10:00
parent c392b20f31
commit 5f5bdc80c6
No known key found for this signature in database
7 changed files with 33 additions and 1 deletions

View file

@ -19,6 +19,7 @@ on:
description: "Package to publish"
options:
- federation
- client
type: choice
required: true
@ -50,8 +51,14 @@ jobs:
- name: Change version in package.json to ${{ github.event.inputs.version }}, defaulting to the truncated commit hash
run: 'sed -i ''s/"version": ".*"/"version": "${{ github.event.inputs.version }}"/'' package.json ${{ github.event.inputs.package }}/package.json ${{ github.event.inputs.package }}/jsr.jsonc'
- name: CD to package directory
run: cd ${{ github.event.inputs.package }}
- name: Patch Bunpublish to not break
run: sed -i --follow-symlinks 's/getHeapStatistics().heap_size_limit/99999999/g' "node_modules/@npmcli/arborist/lib/packument-cache.js"
- name: Publish to NPM
run: bunx @morlay/bunpublish --provenance --tag ${{ github.event.inputs.tag }}
- name: Publish to JSR
run: cd ${{ github.event.inputs.package }} && bunx jsr publish --allow-slow-types --allow-dirty
run: bunx jsr publish --allow-slow-types --allow-dirty