Skip to content

Commit

Permalink
chore(ci): use npm instead of yarn (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Oct 3, 2021
1 parent b7db87f commit 1e36ead
Show file tree
Hide file tree
Showing 34 changed files with 44,800 additions and 182,901 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,26 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Use npm v7
run: npm i -g npm@7 --registry=https://registry.npmjs.org
if: ${{ matrix.node-version == '12.x' || matrix.node-version == '14.x' }}

- name: Install dependencies
run: yarn
run: npm ci

- name: Build
run: yarn build
run: npm run build

- name: Lint
run: yarn lint
run: npm run lint

- name: Check DTS
run: npx check-dts

- name: Test
run: yarn test --ci --coverage
run: npm run test -- --ci --coverage

- name: Codecov
run: yarn codecov
run: npx codecov
14 changes: 7 additions & 7 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ tasks:
- command: gp await-port 8000 && sleep 3 && gp preview $(gp url 8000)
- name: Docs
before: cd website
init: |
yarn install
init: |
npm install
gp sync-done boot
command: yarn dev
command: npm run dev

- name: Dev
init: |
init: |
gp sync-await boot
yarn install
command: yarn run dev
npm install
command: npm run dev
openMode: split-right

ports:
ports:
- port: 8000
onOpen: ignore

Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16

1 comment on commit 1e36ead

@vercel
Copy link

@vercel vercel bot commented on 1e36ead Oct 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.