From 7c3260211065b922922ef763627022223992bcc3 Mon Sep 17 00:00:00 2001 From: ghandic Date: Thu, 22 Aug 2024 22:33:37 +1000 Subject: [PATCH] CI --- .github/workflows/publish.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8a9afd2..fdc57a4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,6 +9,9 @@ jobs: build-and-publish: runs-on: ubuntu-latest environment: production + permissions: + contents: read + id-token: write # The OIDC ID token is used for authentication with JSR. steps: - name: Checkout code uses: actions/checkout@v4 @@ -29,6 +32,9 @@ jobs: run: pnpm run build - name: Publish to npm - run: pnpm publish + run: pnpm publish --no-git-checks env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Publish to jsr + run: pnpm jsr:publish