Skip to content

Commit

Permalink
Fix GitHub Actions workflow to publish packages
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian-hiller committed Sep 1, 2024
1 parent b31d21b commit 4a7ee57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches: [main]
pull_request:
workflow_call:

jobs:
install:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

Expand Down Expand Up @@ -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 }}

Expand All @@ -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

0 comments on commit 4a7ee57

Please sign in to comment.