-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #194 from ERC725Alliance/develop
chore: release 4.1.1
- Loading branch information
Showing
10 changed files
with
4,091 additions
and
7,821 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# This workflow ensure that the smart contracts can be compiled | ||
# with different Solidity 0.8.x versions | ||
name: Solidity Compiler Versions | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "main" | ||
- "develop" | ||
|
||
jobs: | ||
solc_version: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: implementations | ||
strategy: | ||
matrix: | ||
solc: [ | ||
"0.8.8", | ||
"0.8.9", | ||
# "0.8.10" skipped as default in hardhat.config.ts | ||
"0.8.11", | ||
"0.8.12", | ||
"0.8.13", | ||
"0.8.14", | ||
"0.8.15", | ||
"0.8.16", | ||
"0.8.17", | ||
] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js 16 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "16" | ||
cache: "npm" | ||
cache-dependency-path: implementations/package-lock.json | ||
|
||
- name: 📦 Install dependencies | ||
run: npm ci | ||
|
||
- name: Install solc-select | ||
run: pip3 install solc-select | ||
|
||
- name: Use Solc v${{ matrix.solc }} | ||
run: | | ||
solc-select install ${{ matrix.solc }} | ||
solc-select use ${{ matrix.solc }} | ||
- name: Compile Smart Contracts | ||
run: | | ||
solc contracts/**/*.sol \ | ||
@openzeppelin/=node_modules/@openzeppelin/ \ | ||
solidity-bytes-utils/=node_modules/solidity-bytes-utils/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# **Release Process** | ||
|
||
Releases are published when a commit including an increase in the `package.json` version number is merged to the `main` branch. | ||
|
||
This command will increases the version automatically using [standard-version](https://github.com/conventional-changelog/standard-version): | ||
|
||
```bash | ||
$ npm run release | ||
``` | ||
|
||
If the current branch contains new commits since the last git tag that contains [conventional commit](https://www.conventionalcommits.org/en/v1.0.0/) prefixes like `feat`, `fix` or `docs`, it will increase the version as follows: | ||
|
||
- `feat` will increase the `minor` version | ||
- `fix` and `docs` will increase the `patch` version | ||
|
||
Standard-version then: | ||
|
||
1. updates the `package.json` version | ||
2. adds to the `CHANGELOG.md` all commit messages grouped by `Feature`, `Bug Fixes`, `Documentation` or `Other` | ||
3. commits all changes under: `chore(release): <version>` | ||
|
||
Then push the changes to `develop`: | ||
|
||
```bash | ||
$ git push origin develop | ||
``` | ||
|
||
A NPM and GitHub release is created when a version change in `package.json` is merged into `main`. | ||
|
||
A git tag will then be created, a GitHub Release created with the description of the PR to `main` as the release notes with the appended `CHANGELOG.md` content, and iOS and Android Artifacts attached. | ||
At last a release will be published in NPM automatically. | ||
|
||
| ||
|
||
## Specific Version Increases | ||
|
||
To ignore the automatic version increase in favour of a custom version use the `--release-as` flag with the argument `major`, `minor` or `patch` or a specific version number: | ||
|
||
```bash | ||
npm run release -- --release-as minor | ||
# Or | ||
npm run release -- --release-as 1.1.0 | ||
``` | ||
|
||
## Prerelease versions | ||
|
||
To create a pre-release run: | ||
|
||
```bash | ||
npm run release -- --prerelease | ||
``` | ||
|
||
If the lastest version is 1.0.0, the pre-release command will change the version to: `1.0.1-0` | ||
|
||
To name the pre-release, set the name by adding `--prerelease <name>` | ||
|
||
```bash | ||
npm run release -- --prerelease alpha | ||
``` | ||
|
||
If the latest version is 1.0.0 this will change the version to: `1.0.1-alpha.0` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.