Skip to content

Commit

Permalink
fix: Upgrade npm modules and switch to pnpm to do upgrades.
Browse files Browse the repository at this point in the history
  • Loading branch information
richtera committed Feb 7, 2024
1 parent e46dfd8 commit 4772b40
Show file tree
Hide file tree
Showing 13 changed files with 7,868 additions and 23,591 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'
cache: 'pnpm'

- name: 🧰 Install
run: npm ci
run: pnpm install

- name: ⬆️ Bump package version
run: |-
git config --global user.email "release@lukso.network"
git config --global user.name "Release Bot"
npm run release -- ${{ github.event.inputs.arguments }}
pnpm release -- ${{ github.event.inputs.arguments }}
- name: 📝 Set Version
run: |-
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/lint-test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache: 'pnpm'

- name: Install
run: npm ci
run: pnpm install

- name: Lint
run: npm run lint
run: pnpm lint

- name: Build
run: npm run build --if-present
run: pnpm build

- name: Test
run: npm test
run: pnpm test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ jobs:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
scope: '@erc725'
cache: 'npm'
cache: 'pnpm'

- name: 🧰 Install
run: npm ci
run: pnpm install

- name: 💅 Lint
run: npm run lint
run: pnpm lint

- name: 🎯 Test
run: npm test
run: pnpm test

- name: 🛠 Build
run: npm run build
run: pnpm build

- uses: google-github-actions/release-please-action@v3
id: release
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ docs/html
.vscode/*
.nyc_output
coverage
*.tgz
*.tgz
.DS_Store
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.17.0
18.19.0
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 18.19.0
18 changes: 1 addition & 17 deletions examples/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"web3": "^1.10.0"
},
"devDependencies": {
"isomorphic-fetch": "^3.0.0"
"cross-fetch": "^3.0.0"
}
}
4 changes: 2 additions & 2 deletions examples/src/instantiation.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import Web3 from 'web3';
import { ERC725 } from '@erc725/erc725.js';

// this is needed because node does not support `fetch` out of the box
// isomorphic-fetch is not needed in a browser environment
import 'isomorphic-fetch';
// cross-fetch is not needed in a browser environment
import 'cross-fetch';

const RPC_ENDPOINT = 'https://rpc.testnet.lukso.network';
const IPFS_GATEWAY = 'https://2eff.lukso.dev/ipfs/';
Expand Down
Loading

0 comments on commit 4772b40

Please sign in to comment.