Skip to content

Commit

Permalink
Canary releases (#6143)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
mpetrunic and jdevcs committed Jun 2, 2023
1 parent 01ce365 commit 45edf3d
Show file tree
Hide file tree
Showing 4 changed files with 1,409 additions and 1,166 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/canary_release.yml
@@ -0,0 +1,22 @@
name: 'Release Canary'
on:
push:
branches:
- '4.x'

jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn build:web
- run: yarn publish:canary
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -17,6 +17,8 @@ Web3.js is a TypeScript implementation of the [Ethereum JSON RPC API](https://et

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

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

```bash
Expand Down
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -91,7 +91,8 @@
"test:blackbox:infura:ws": "yarn pre-blackbox && ./scripts/verdaccio.sh startBackgroundAndPublish && lerna run test:blackbox:infura:ws --stream && yarn post-blackbox",
"prepare": "husky install",
"postinstall": "yarn build",
"compile:contracts": "node ./scripts/compile_contracts.js && yarn format && yarn lint:fix"
"compile:contracts": "node ./scripts/compile_contracts.js && yarn format && yarn lint:fix",
"publish:canary": "lerna publish --canary --dist-tag dev --graph-type all --force-publish \"*\" --no-verify-access --yes"
},
"devDependencies": {
"@cypress/webpack-preprocessor": "^5.12.0",
Expand All @@ -111,7 +112,7 @@
"https-browserify": "^1.0.0",
"husky": "^8.0.1",
"jest": "^28.1.3",
"lerna": "^5.1.8",
"lerna": "^6.6.2",
"lint-staged": "^13.0.3",
"npm-auth-to-token": "^1.0.0",
"prettier": "^2.7.1",
Expand Down

0 comments on commit 45edf3d

Please sign in to comment.