Skip to content

ci: workaround corepack issue with actions #1571

ci: workaround corepack issue with actions

ci: workaround corepack issue with actions #1571

Workflow file for this run

name: autofix.ci
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set node
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install pnpm
# https://github.com/nitrojs/nitro/pull/3060
# https://github.com/nodejs/corepack/pull/614
run: npm i -g --force corepack && corepack enable pnpm
- name: Setup
run: npm i -g @antfu/ni
- name: Install
run: nci
- name: Build
run: nr build
- name: Lint
run: nr lint --fix
- uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef