Skip to content

Commit

Permalink
chore: update ci/cd actions to use pnpm instead of npm/yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
guidiaz committed Feb 19, 2024
1 parent c034491 commit f2f9e53
Show file tree
Hide file tree
Showing 4 changed files with 644 additions and 8 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,18 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Install dependencies
run: |
npm install
pnpm install
- name: Check format
run: |
npm run fmt
pnpm run fmt
- name: Compile solidity contracts
run: |
npm run compile
pnpm run compile
- name: Run tests
run: |
npm run test
pnpm run test
7 changes: 5 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ jobs:
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: yarn install
- run: yarn publish
- uses: pnpm/action-setup@v3
with:
version: 8
- run: pnpm install
- run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{SECRETS.NPM_TOKEN}}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
"custom-error-test-helper": "^1.0.6",
"eslint": "^8.56.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.1.1",
"eth-gas-reporter": "^0.2.27",
"eth-helpers": "^1.3.0",
"hardhat": "^2.19.5",
Expand Down
Loading

0 comments on commit f2f9e53

Please sign in to comment.