From 4a7ee576fd43b2b5e156b71f658e8cb9757e3e80 Mon Sep 17 00:00:00 2001 From: Fabian Hiller Date: Sun, 1 Sep 2024 23:07:02 +0200 Subject: [PATCH] Fix GitHub Actions workflow to publish packages --- .github/workflows/ci.yml | 1 + .github/workflows/publish.yml | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc5498082..85df7f633 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,7 @@ on: push: branches: [main] pull_request: + workflow_call: jobs: install: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9239b7040..71fb5ba98 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,14 +3,12 @@ name: Publish on: release: types: [published] + workflow_dispatch: jobs: default_ci: name: Run default CI of repository - runs-on: ubuntu-latest - steps: - - name: CI workflow - uses: ./.github/workflows/ci.yml + uses: ./.github/workflows/ci.yml library_npm: name: Publish library to NPM @@ -28,8 +26,9 @@ jobs: run: pnpm build working-directory: library - name: Publish - run: npm publish --provenance --access public + run: pnpm publish --provenance --access public working-directory: library + continue-on-error: true env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} @@ -63,8 +62,9 @@ jobs: run: pnpm build.npm working-directory: packages/i18n - name: Publish - run: npm publish --provenance --access public + run: pnpm publish --provenance --access public --no-git-checks working-directory: packages/i18n + continue-on-error: true env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} @@ -84,5 +84,5 @@ jobs: run: pnpm build.jsr working-directory: packages/i18n - name: Publish - run: npx jsr publish + run: npx jsr publish --allow-dirty working-directory: packages/i18n