Skip to content

Commit

Permalink
fix: cicd (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
rekyyang authored May 27, 2024
1 parent 1005908 commit 7011fb2
Show file tree
Hide file tree
Showing 12 changed files with 668 additions and 184 deletions.
5 changes: 5 additions & 0 deletions .changeset/fresh-laws-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@node-real/web3-plugin-bundle": major
---

init
3 changes: 1 addition & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ name: Release
on:
push:
branches:
- main
- master
- alpha
- beta
- dev

jobs:
release:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test Case
on:
push:
branches:
- main
- master
- alpha
- beta

Expand All @@ -11,6 +11,7 @@ jobs:
runs-on: ubuntu-latest

env:
APIKEY: ${{ secrets.APIKEY }}
Address: ${{ secrets.ACCOUNT_ADDRESS }}
PrivateKey: ${{ secrets.ACCOUNT_PRIVATEKEY }}

Expand All @@ -21,8 +22,8 @@ jobs:

- uses: ./.github/actions/ci-setup

- name: Build
run: pnpm -F "@node-real/**" build
# - name: Build
# run: pnpm -F "@node-real/**" build

- name: Run Test
run: pnpm -F "@node-real/web3.js-plugin-bundle" test
run: pnpm -F "@node-real/*" test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
lib

.idea
.idea
dist
26 changes: 18 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@node-real/web3-plugin-bundle",
"version": "0.0.1-beta",
"version": "1.0.0",
"description": "bundle plugin to extend web3.js with additional methods",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand All @@ -16,8 +16,9 @@
"prepare": "husky install",
"version": "pnpm install && changeset version",
"clean": "rimraf node_modules **/*/node_modules",
"build": "pnpm run -F \"./src/**\" -r build",
"lint": "prettier --write './src/*.{ts,tsx,js,jsx}' && eslint ./src/ --ext .js,.jsx,.ts,.tsx --fix"
"build": "rollup -c --bundleConfigAsCjs",
"lint": "prettier --write './src/*.{ts,tsx,js,jsx}' && eslint ./src/ --ext .js,.jsx,.ts,.tsx --fix",
"test": "jest --runInBand './test/*' --config './test/jest.config.js'"
},
"contributors": [
"rekyyang <[email protected]>"
Expand All @@ -28,22 +29,31 @@
"url": "[email protected]:node-real/web3.js-plugin-bundle.git"
},
"dependencies": {
"@rollup/plugin-alias": "^5.1.0",
"@rollup/plugin-commonjs": "^25.0.8",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"inflight": "^1.0.6",
"rollup-plugin-auto-external": "^2.0.0",
"rollup-plugin-polyfill-node": "^0.13.0",
"web3-core": "^4.3.2",
"web3-types": "^1.6.0"
},
"devDependencies": {
"@chainsafe/eslint-config": "^2.0.0",
"@changesets/cli": "^2.27.3",
"@types/jest": "^29.5.2",
"@types/jest": "^29.5.12",
"@types/node": "^20.2.6",
"eslint": "8",
"husky": "^9.0.11",
"jest": "^29.5.0",
"jest": "^29.7.0",
"jest-extended": "^4.0.0",
"rimraf": "^5.0.7",
"ts-jest": "^29.1.0",
"rimraf": "^3.0.2",
"rollup-plugin-typescript2": "^0.36.0",
"ts-jest": "^29.1.3",
"ts-node": "^10.9.1",
"typescript": "^5.1.3",
"typescript": "^5.4.5",
"web3": "^4.2.2"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit 7011fb2

Please sign in to comment.