Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 45edf3d

Browse files
mpetrunicjdevcs
andauthoredJun 2, 2023
Canary releases (#6143)
* update lerna Signed-off-by: Marin Petrunic <marin.petrunic@gmail.com> * add canary release flow * add type building Signed-off-by: Marin Petrunic <marin.petrunic@gmail.com> * add force publish all Signed-off-by: Marin Petrunic <marin.petrunic@gmail.com> * add missing publish Signed-off-by: Marin Petrunic <marin.petrunic@gmail.com> * shorten ci commands * add min build --------- Signed-off-by: Marin Petrunic <marin.petrunic@gmail.com> Co-authored-by: Junaid <86780488+jdevcs@users.noreply.github.com>
1 parent 01ce365 commit 45edf3d

File tree

4 files changed

+1409
-1166
lines changed

4 files changed

+1409
-1166
lines changed
 

‎.github/workflows/canary_release.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: 'Release Canary'
2+
on:
3+
push:
4+
branches:
5+
- '4.x'
6+
7+
jobs:
8+
release:
9+
name: release
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: 16
16+
cache: yarn
17+
- run: yarn install --frozen-lockfile
18+
- run: yarn build:web
19+
- run: yarn publish:canary
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22+

‎README.md

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Web3.js is a TypeScript implementation of the [Ethereum JSON RPC API](https://et
1717

1818
You can install the package either using [NPM](https://www.npmjs.com/package/web3) or using [Yarn](https://yarnpkg.com/package/web3)
1919

20+
> If you wanna checkout latest bugfix or feature, use `npm install web3@dev`
21+
2022
### Using NPM
2123

2224
```bash

‎package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@
9191
"test:blackbox:infura:ws": "yarn pre-blackbox && ./scripts/verdaccio.sh startBackgroundAndPublish && lerna run test:blackbox:infura:ws --stream && yarn post-blackbox",
9292
"prepare": "husky install",
9393
"postinstall": "yarn build",
94-
"compile:contracts": "node ./scripts/compile_contracts.js && yarn format && yarn lint:fix"
94+
"compile:contracts": "node ./scripts/compile_contracts.js && yarn format && yarn lint:fix",
95+
"publish:canary": "lerna publish --canary --dist-tag dev --graph-type all --force-publish \"*\" --no-verify-access --yes"
9596
},
9697
"devDependencies": {
9798
"@cypress/webpack-preprocessor": "^5.12.0",
@@ -111,7 +112,7 @@
111112
"https-browserify": "^1.0.0",
112113
"husky": "^8.0.1",
113114
"jest": "^28.1.3",
114-
"lerna": "^5.1.8",
115+
"lerna": "^6.6.2",
115116
"lint-staged": "^13.0.3",
116117
"npm-auth-to-token": "^1.0.0",
117118
"prettier": "^2.7.1",

‎yarn.lock

+1,382-1,164
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
This repository has been archived.