Skip to content

Commit

Permalink
chore: use pnpm with lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
RJWadley committed Jan 25, 2024
1 parent 2ce2cbd commit 18ffe2b
Show file tree
Hide file tree
Showing 5 changed files with 6,663 additions and 25 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm i --ignore-scripts
- run: npm run lint:js
- run: npm run lint:prettier
- uses: actions/checkout@v4
- run: pnpm i --ignore-scripts
- run: pnpm run lint:js
- run: pnpm run lint:prettier

test:
needs: [lint]
Expand All @@ -18,33 +18,33 @@ jobs:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm i --ignore-scripts
- run: npm run test
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: pnpm i --ignore-scripts
- run: pnpm run test

coverage:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm i --ignore-scripts
- run: npm run test:coverage
- uses: codecov/codecov-action@v3
- uses: actions/checkout@v4
- run: pnpm i --ignore-scripts
- run: pnpm run test:coverage
- uses: codecov/codecov-action@v3

release:
needs: [test]
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- run: npm i --ignore-scripts
- run: npm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- run: pnpm i --ignore-scripts
- run: pnpm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
node_modules
npm-debug.log
yarn-error.log

# lockfiles from other package managers
package-lock.json
yarn.lock

# Coveralls coverage
/coverage
Expand Down
3 changes: 2 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
package-lock=false
save-prefix=''
prefer-offline=true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"eslint-plugin-import": "2.29.1",
"husky": "8.0.3",
"jest": "29.7.0",
"jest-light-runner": "^0.6.0",
"jest-light-runner": "0.6.0",
"jest-preset-stylelint": "7.0.0",
"lint-staged": "15.2.0",
"prettier": "3.1.1",
Expand Down
Loading

0 comments on commit 18ffe2b

Please sign in to comment.