Skip to content

Commit

Permalink
ci(actions): bump action labeler and nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
w0ofy committed Jan 30, 2024
1 parent b022759 commit 2420a05
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/actions/setup-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
40 changes: 25 additions & 15 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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__/**/*'
6 changes: 4 additions & 2 deletions .github/opened-pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# https://github.com/actions/labeler

'status: do not merge':
- '*'
- '**/*'
- changed-files:
- any-glob-to-any-file:
- '*'
- '**/*'
4 changes: 2 additions & 2 deletions .github/workflows/on_pull_request_labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2420a05

Please sign in to comment.