Skip to content

Commit

Permalink
fix(github): parallelize
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelfimov committed Sep 17, 2024
1 parent 6916cb0 commit 03a668d
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 66 deletions.
2 changes: 1 addition & 1 deletion .github/actions/checks/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ runs:
run: |
source .env
export NODE_OPTIONS
yarn workspaces changed foreach -vtp --no-private dlx jsr publish --dry-run
yarn workspaces changed foreach -vtp --jobs=2 --no-private dlx jsr publish --dry-run
2 changes: 1 addition & 1 deletion .github/actions/commit/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ runs:
rm $temp_file
- name: Commit changes
uses: planetscale/[email protected].44
uses: planetscale/[email protected].45
env:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/publish-jsr/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ runs:
run: |
source .env
export NODE_OPTIONS
yarn workspaces changed foreach -vtp --no-private dlx jsr publish
yarn workspaces changed foreach -vtp --jobs=2 --no-private dlx jsr publish
2 changes: 1 addition & 1 deletion .github/actions/publish-npm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ runs:
run: |
source .env
export NODE_OPTIONS
yarn workspaces changed foreach -vtp --no-private npm publish --access public
yarn workspaces changed foreach -vtp --jobs=2 --no-private npm publish --access public
env:
YARN_NPM_AUTH_TOKEN: ${{ inputs.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .github/actions/release/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ runs:
run: |
source .env
export NODE_OPTIONS
yarn workspaces changed foreach exec \
yarn workspaces changed foreach -vtp --jobs=2 exec \
'bash -c "VERSION=$npm_package_version; \
NAME=$npm_package_name; \
if [ ! -z \"\$VERSION\" ]; then \
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ runs:
run: |
source .env
export NODE_OPTIONS
yarn workspaces changed foreach -tpv --no-private version patch -i
yarn workspaces changed foreach -ptv --jobs=2 --no-private version patch -i
env:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
6 changes: 4 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,25 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to NPM
if: ${{ !cancelled() }}
id: npm
uses: ./.github/actions/publish-npm
with:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish to JSR
if: ${{ !cancelled() }}
id: jsr
uses: ./.github/actions/publish-jsr

- name: Create release
if: steps.npm.outcome == 'success' || steps.jsr.outcome == 'success'
if: ${{ !cancelled() }}
uses: ./.github/actions/release
with:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

- name: Commit changes
if: steps.npm.outcome == 'success' || steps.jsr.outcome == 'success'
if: ${{ !cancelled() }}
uses: ./.github/actions/commit
with:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
84 changes: 26 additions & 58 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 03a668d

Please sign in to comment.