Skip to content

Commit

Permalink
ci: improve workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Oct 10, 2024
1 parent 171dce7 commit 52a3090
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 20 deletions.
13 changes: 5 additions & 8 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ description: 'Build the project'
runs:
using: composite
steps:
- name: 'Build packages'
shell: bash
#language=sh
run: |
yarn nx run-many \
--runner=cloud \
--target=build \
--output-style=stream
- uses: myparcelnl/actions/nx-run-many@v4
with:
target: 'build'
cloud: true
runner: 'cloud'
21 changes: 9 additions & 12 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,16 @@ jobs:
needs: test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
token: ${{ secrets.GH_REPO_TOKEN }}

# TODO: Switch to v3 with app credentials when GitHub apps are allowed to bypass status checks. https://github.com/orgs/community/discussions/43460
- uses: myparcelnl/actions/setup-git-credentials@v2
- uses: myparcelnl/actions/setup-git-credentials@v4
id: credentials
with:
token: ${{ secrets.GH_REPO_TOKEN }}
app-id: ${{ inputs.app-id }}
private-key: ${{ inputs.private-key }}

- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_REPO_TOKEN }}
token: ${{ steps.credentials.outputs.token }}

- uses: myparcelnl/actions/yarn-install@v4

Expand All @@ -44,13 +40,14 @@ jobs:
path: ./apps/demo/dist

- name: 'Run monodeploy'
env:
GH_TOKEN: ${{ steps.credentials.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
#language=bash
run: |
yarn monodeploy \
--config-file monodeploy.config.cjs \
--log-level 0
env:
GH_TOKEN: ${{ secrets.GH_REPO_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
rebase-prs:
needs: release
Expand Down

0 comments on commit 52a3090

Please sign in to comment.