Skip to content

Commit

Permalink
build: drop yarn, use npm
Browse files Browse the repository at this point in the history
  • Loading branch information
ruicsh committed Dec 6, 2023
1 parent 43e2905 commit 4bdce2b
Show file tree
Hide file tree
Showing 8 changed files with 9,867 additions and 3,222 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,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 install --frozen-lockfile --legacy-peer-deps --no-audit
npm run lint
npm run lint:ts
npm run test:ci
test-coverage:
needs: test
Expand All @@ -41,13 +41,13 @@ 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 install --frozen-lockfile --legacy-peer-deps --no-audit
- 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 @@ -62,8 +62,8 @@ jobs:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: |
yarn install --frozen-lockfile
yarn build
npm install --frozen-lockfile --legacy-peer-deps --no-audit
npmm run build
- name: Semantic Release
uses: cycjimmy/semantic-release-action@main
with:
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.9.0
20.10.0
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
save=true
save-exact=true
access=public
fund=false

0 comments on commit 4bdce2b

Please sign in to comment.