diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index ea6b188ae..2bd983471 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -4,8 +4,13 @@ description: 'Sets up environment and creates a build' runs: using: composite steps: + - uses: myparcelnl/actions/yarn-install@v4 + with: + node-version: ${{ vars.NODE_VERSION }} + - name: 'Build packages' shell: bash + #language=bash run: | NX_BRANCH=production yarn nx run-many \ --runner=cloud \ diff --git a/.github/actions/install/action.yml b/.github/actions/install/action.yml deleted file mode 100644 index 1c937cdd0..000000000 --- a/.github/actions/install/action.yml +++ /dev/null @@ -1,9 +0,0 @@ -name: 'Install dependencies' -description: 'Installs dependencies' - -runs: - using: composite - steps: - - uses: myparcelnl/actions/yarn-install@v3 - with: - node-version: 20 diff --git a/.github/workflows/pull-request-open.yml b/.github/workflows/pull-request-open.yml index 3023e0aa5..dc541e943 100644 --- a/.github/workflows/pull-request-open.yml +++ b/.github/workflows/pull-request-open.yml @@ -13,7 +13,7 @@ jobs: assign-author: runs-on: ubuntu-22.04 steps: - - uses: myparcelnl/actions/pr-assign-author@v3 + - uses: myparcelnl/actions/pr-assign-author@v4 with: app-id: ${{ secrets.MYPARCEL_APP_ID }} private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }} diff --git a/.github/workflows/pull-request-review.yml b/.github/workflows/pull-request-review.yml index 3365a46a1..a2eea6918 100644 --- a/.github/workflows/pull-request-review.yml +++ b/.github/workflows/pull-request-review.yml @@ -10,7 +10,7 @@ jobs: label: runs-on: ubuntu-22.04 steps: - - uses: myparcelnl/actions/pr-label-by-review@v3 + - uses: myparcelnl/actions/pr-label-by-review@v4 with: app-id: ${{ secrets.MYPARCEL_APP_ID }} private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }} diff --git a/.github/workflows/pull-request-title.yml b/.github/workflows/pull-request-title.yml index 207060c05..8d564cdbe 100644 --- a/.github/workflows/pull-request-title.yml +++ b/.github/workflows/pull-request-title.yml @@ -14,7 +14,7 @@ jobs: lint: runs-on: ubuntu-22.04 steps: - - uses: myparcelnl/actions/pr-validate-title-conventional@v3 + - uses: myparcelnl/actions/pr-validate-title-conventional@v4 with: app-id: ${{ secrets.MYPARCEL_APP_ID }} private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }} diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index fd6452625..3046711d3 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -21,13 +21,11 @@ jobs: bundlewatch: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 - - - uses: ./.github/actions/install + - uses: actions/checkout@v4 - uses: ./.github/actions/build - - uses: myparcelnl/actions/setup-git-credentials@v3 + - uses: myparcelnl/actions/setup-git-credentials@v4 id: credentials with: app-id: ${{ secrets.MYPARCEL_APP_ID }} @@ -37,6 +35,6 @@ jobs: shell: bash run: git fetch --no-tags --prune --depth=1 origin ${{ github.base_ref }} - - uses: myparcelnl/actions/bundlewatch@v3 + - uses: myparcelnl/actions/bundlewatch@v4 with: token: ${{ inputs.bundlewatch-token }} diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 32737141b..06477007d 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-22.04 needs: test steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: persist-credentials: false token: ${{ secrets.GH_REPO_TOKEN }} @@ -29,20 +29,19 @@ jobs: with: token: ${{ secrets.GH_REPO_TOKEN }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 token: ${{ secrets.GH_REPO_TOKEN }} - - uses: ./.github/actions/install - - uses: ./.github/actions/build - - uses: actions/upload-pages-artifact@v1 + - uses: actions/upload-pages-artifact@v3 with: path: ./apps/admin-demo/dist - name: 'Run monodeploy' + #language=bash run: | yarn monodeploy \ --config-file monodeploy.config.cjs \ @@ -56,13 +55,13 @@ jobs: if: always() runs-on: ubuntu-22.04 steps: - - uses: myparcelnl/actions/setup-git-credentials@v3 + - uses: myparcelnl/actions/setup-git-credentials@v4 id: credentials with: app-id: ${{ secrets.MYPARCEL_APP_ID }} private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }} - - uses: peter-evans/rebase@v2 + - uses: peter-evans/rebase@v3 with: token: ${{ steps.credentials.outputs.token }} base: ${{ github.ref_name }} @@ -80,4 +79,4 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} steps: - id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 40ca0e5d8..bae07a057 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,9 +9,7 @@ jobs: test: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 - - - uses: ./.github/actions/install + - uses: actions/checkout@v4 - uses: ./.github/actions/build @@ -19,6 +17,7 @@ jobs: shell: bash env: NX_BRANCH: ${{ github.event.inputs.branch || github.head_ref || github.ref }} + #language=bash run: | yarn nx run-many \ --runner=cloud \ @@ -28,13 +27,15 @@ jobs: - name: 'Rename coverage files' shell: bash + #language=bash run: | yarn workspaces foreach -Apv \ --exclude=. \ exec \ bash -c 'if [ -f coverage/clover.xml ]; then mv coverage/clover.xml coverage/${npm_package_name//\//-}.xml; fi' -- {} - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 with: files: coverage/*.xml flags: unit + token: ${{ secrets.CODECOV_TOKEN }}