Skip to content

Commit

Permalink
ci: enable corepack in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
csm-thu committed Jul 2, 2024
1 parent aa080eb commit 06fd1a4
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,16 @@ jobs:
if: ${{ ! startsWith(github.head_ref, 'dependabot/') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Checkout git repository
uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
- run: yarn install && yarn eslint .
- name: Run eslint
run: yarn install && yarn eslint .
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 06fd1a4

Please sign in to comment.