From 9b10985f6587dc4d3917634cf87ac4060db166bf Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Wed, 27 Nov 2024 01:10:07 -0800 Subject: [PATCH] Alter working dir for publishing to JSR --- .github/workflows/publish-jsr.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/publish-jsr.yaml b/.github/workflows/publish-jsr.yaml index 5e9928b..6aff5d2 100644 --- a/.github/workflows/publish-jsr.yaml +++ b/.github/workflows/publish-jsr.yaml @@ -21,5 +21,12 @@ jobs: with: node-version: 22 + - name: Split tag name + env: + TAG: ${{ github.ref_name }} + id: tag + run: echo "::set-output name=package-name::${TAG%%@*}" + - name: Publish + working-directory: 'packages/${{ steps.tag.outputs.package-name }}' run: npx jsr publish