Skip to content

Commit

Permalink
refactor: use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincharity committed Feb 3, 2024
1 parent bca89df commit a91e762
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,19 @@ jobs:
name: production
url: https://www.npmjs.com/package/@benjc/rehype-scroll-to-top
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18.x"
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Run install
run: npm ci
run: pnpm ci
- name: Run build
run: npm run build
run: pnpm run build
- name: Run publish
run: npm publish --access=public
run: pnpm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
13 changes: 8 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,19 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Run install
run: npm ci
run: pnpm i
- name: Run lint
run: npm run lint
run: pnpm run lint
- name: Run unit tests
run: npm test
run: pnpm test
- name: Run build
run: npm run build
run: pnpm run build
- name: Generate coverage file
run: npm run coverage
run: pnpm run coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down

0 comments on commit a91e762

Please sign in to comment.