mirror of
https://github.com/movie-web/simple-proxy.git
synced 2025-09-13 18:13:26 +00:00
switch to pnpm and add import aliasing
This commit is contained in:
21
.github/workflows/linting.yml
vendored
21
.github/workflows/linting.yml
vendored
@@ -15,21 +15,23 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- uses: pnpm/action-setup@v2
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: 'npm'
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install npm packages
|
||||
run: npm install
|
||||
- name: Install packages
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Prepare for linting
|
||||
run: npm run prepare
|
||||
run: pnpm prepare
|
||||
|
||||
- name: Run ESLint
|
||||
run: npm run lint
|
||||
run: pnpm lint
|
||||
|
||||
building:
|
||||
name: Build project
|
||||
@@ -38,15 +40,16 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
- uses: pnpm/action-setup@v2
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
cache: 'npm'
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install npm packages
|
||||
run: npm install
|
||||
- name: Install pnpm packages
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Build Project
|
||||
run: npm run build
|
||||
run: pnpm build
|
||||
|
Reference in New Issue
Block a user