From 2420a05bfab20e9b857dcc46641bd8a2e6b6e87e Mon Sep 17 00:00:00 2001 From: Michael Wolf Date: Mon, 29 Jan 2024 13:13:23 -0500 Subject: [PATCH] ci(actions): bump action labeler and nodejs --- .github/actions/setup-env/action.yml | 4 +- .github/labeler.yml | 40 ++++++++++++-------- .github/opened-pr-labeler.yml | 6 ++- .github/workflows/on_pull_request_labels.yml | 4 +- 4 files changed, 33 insertions(+), 21 deletions(-) diff --git a/.github/actions/setup-env/action.yml b/.github/actions/setup-env/action.yml index 253cd6e07..3449f4f4d 100644 --- a/.github/actions/setup-env/action.yml +++ b/.github/actions/setup-env/action.yml @@ -12,10 +12,10 @@ runs: with: fetch-depth: 0 - - name: Setup nodejs 16.20.2 + - name: Setup nodejs 20.11.0 uses: actions/setup-node@master with: - node-version: 16.20.2 + node-version: 20.11.0 - name: Get yarn cache directory path shell: bash diff --git a/.github/labeler.yml b/.github/labeler.yml index 745f0835d..b7aedf2ea 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -2,38 +2,48 @@ # Add 'repo' label to any root file changes 'area: repo': - - '*' +- changed-files: + - any-glob-to-any-file: '*' 'area: infra': - - .changeset/**/* - - .github/**/* - - .husky/**/* - - _storybook/**/* - - .vscode/**/* - - tools/**/* - - package.json +- changed-files: + - any-glob-to-any-file: + - .changeset/**/* + - .github/**/* + - .husky/**/* + - _storybook/**/* + - .vscode/**/* + - tools/**/* + - package.json # components 'area: components': - - packages/components/**/* +- changed-files: + - any-glob-to-any-file: packages/components/**/* # core bundle 'area: core': - - packages/core/**/* + - changed-files: + - any-glob-to-any-file: packages/core/**/* # libraries 'area: libraries': - - packages/libraries/**/* +- changed-files: + - any-glob-to-any-file: packages/libraries/**/* # primitives 'area: primitives': - - packages/primitives/**/* +- changed-files: + - any-glob-to-any-file: packages/primitives/**/* # docs 'type: storybook': - - packages/**/stories/**/* - - _storybook/**/* +- changed-files: + - any-glob-to-any-file: + - packages/**/stories/**/* + - _storybook/**/* # tests 'type: test': - - '**/__tests__/**/*' +- changed-files: + - any-glob-to-any-file: '**/__tests__/**/*' diff --git a/.github/opened-pr-labeler.yml b/.github/opened-pr-labeler.yml index 1c0dbf5ab..f1cecb243 100644 --- a/.github/opened-pr-labeler.yml +++ b/.github/opened-pr-labeler.yml @@ -1,5 +1,7 @@ # https://github.com/actions/labeler 'status: do not merge': - - '*' - - '**/*' +- changed-files: + - any-glob-to-any-file: + - '*' + - '**/*' diff --git a/.github/workflows/on_pull_request_labels.yml b/.github/workflows/on_pull_request_labels.yml index bf7376bac..4ee22bb4e 100644 --- a/.github/workflows/on_pull_request_labels.yml +++ b/.github/workflows/on_pull_request_labels.yml @@ -9,12 +9,12 @@ jobs: name: Categorize PR runs-on: ubuntu-latest steps: - - uses: actions/labeler@v4 + - uses: actions/labeler@v5 if: ${{ github.event.action == 'opened' || github.event.action == 'reopened' }} with: repo-token: '${{ secrets.GITHUB_TOKEN }}' configuration-path: .github/opened-pr-labeler.yml - - uses: actions/labeler@v4 + - uses: actions/labeler@v5 with: repo-token: '${{ secrets.GITHUB_TOKEN }}' sync-labels: true