Skip to content

Commit

Permalink
chore: drop yarn, use npm
Browse files Browse the repository at this point in the history
  • Loading branch information
ruicsh committed Dec 11, 2023
1 parent cce1d14 commit bead3f0
Show file tree
Hide file tree
Showing 5 changed files with 9,965 additions and 3,278 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
- uses: actions/cache@main
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- run: |
yarn install --frozen-lockfile
yarn lint
yarn lint:ts
yarn test:ci
npm ci
npm run lint
# npm run lint:ts
npm run test:ci
test-coverage:
needs: test
Expand All @@ -38,13 +38,14 @@ jobs:
- uses: actions/cache@main
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --frozen-lockfile
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- run: |
npm ci
- uses: paambaati/codeclimate-action@v2.7.2
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: yarn coverage
coverageCommand: npm run coverage
debug: true

publish-to-npm:
Expand All @@ -61,10 +62,10 @@ jobs:
- uses: actions/cache@main
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- run: |
yarn install --frozen-lockfile
yarn build
npm ci
npm run build
- name: Semantic Release
uses: cycjimmy/semantic-release-action@main
with:
Expand Down
Loading

0 comments on commit bead3f0

Please sign in to comment.