Skip to content

Commit

Permalink
build: use pnpm install without ci
Browse files Browse the repository at this point in the history
  • Loading branch information
khawarizmus committed Oct 21, 2023
1 parent 389490c commit 9e3e8e1
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,14 @@ jobs:
- name: Set node
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18.x
cache: pnpm

- name: Setup
run: npm i -g @antfu/ni

- name: Install
run: nci
run: pnpm install

- name: Lint
run: nr lint
run: pnpm run lint

TypeCheck:
runs-on: ubuntu-latest
Expand All @@ -44,24 +41,21 @@ jobs:
- name: Set node
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18.x
cache: pnpm

- name: Setup
run: npm i -g @antfu/ni

- name: Install
run: nci
run: pnpm install

- name: Typecheck
run: nr typecheck
run: pnpm run typecheck

Test:
runs-on: ${{ matrix.os }}

strategy:
matrix:
node: [16.x]
node: [18.x]
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false

Expand All @@ -78,13 +72,13 @@ jobs:
cache: pnpm

- name: Install
run: pnpm i --frozen-lockfile
run: pnpm install

- name: Build
run: pnpm build
run: pnpm run build

- name: Test
run: pnpm test
run: pnpm run test
# we release if everything is fine
Release:
runs-on: ubuntu-latest
Expand All @@ -103,7 +97,7 @@ jobs:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
node-version: 14.x
node-version: 18.x
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 9e3e8e1

Please sign in to comment.