Skip to content

Commit

Permalink
chore: change yarn to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
solufa committed Jul 29, 2023
1 parent 46a72e9 commit 9149391
Show file tree
Hide file tree
Showing 4 changed files with 7,046 additions and 4,833 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v2
id: yarn-cache
id: npm-cache
with:
path: "node_modules"
key: ${{ runner.os }}-node-v${{ matrix.node-version }}-yarn-${{ hashFiles('yarn.lock') }}
- run: yarn --frozen-lockfile
if: steps.yarn-cache.outputs.cache-hit != 'true'
- run: yarn lint
key: ${{ runner.os }}-node-v${{ matrix.node-version }}-npm-${{ hashFiles('package-lock.json') }}
- run: npm install
if: steps.npm-cache.outputs.cache-hit != 'true'
- run: npm run lint
if: matrix.os != 'windows-latest'
- run: yarn typecheck
- run: yarn test
- run: npm run typecheck
- run: npm test

release:
runs-on: ubuntu-latest
Expand All @@ -43,13 +43,13 @@ jobs:
node-version: 18
registry-url: "https://registry.npmjs.org"
- uses: actions/cache@v2
id: yarn-cache
id: npm-cache
with:
path: "node_modules"
key: ${{ runner.os }}-node-v18-yarn-${{ hashFiles('yarn.lock') }}
- run: yarn --frozen-lockfile
if: steps.yarn-cache.outputs.cache-hit != 'true'
- run: yarn build
key: ${{ runner.os }}-node-v18-npm-${{ hashFiles('package-lock.json') }}
- run: npm install
if: steps.npm-cache.outputs.cache-hit != 'true'
- run: npm run build
- run: |
VERSION="$(node -e 'console.log(process.argv[1].match(/^refs\/tags\/v(\d+\.\d+\.\d+)$/)[1])' "${{ github.ref }}")"
node -e 'console.log(JSON.stringify({...require("./package.json"),version:process.argv[1]}, null, 2))' "$VERSION" | tee ./tmp-package.json
Expand Down
258 changes: 0 additions & 258 deletions CHANGELOG.md

This file was deleted.

Loading

0 comments on commit 9149391

Please sign in to comment.