-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI updates to handle V2 release (#1006)
* feat: handle v2 * chore: node 20 * chore: keep default ci
- Loading branch information
1 parent
5848cac
commit 734e552
Showing
3 changed files
with
643 additions
and
1,948 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
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 |
---|---|---|
@@ -1,22 +1,31 @@ | ||
name: Release | ||
name: Release Package | ||
|
||
on: | ||
push: | ||
branches: | ||
- "next" | ||
tags: | ||
- v* | ||
jobs: | ||
build: | ||
publish-npm-package: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: "16.x" | ||
- run: yarn cp-ci-env | ||
- run: yarn install | ||
- run: yarn run hardhat export-abi | ||
- run: yarn semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.RAZORNETWORKBOT }} | ||
NPM_TOKEN: ${{ secrets.RAZORDEPLOYER }} | ||
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "20" | ||
registry-url: "https://registry.npmjs.org" | ||
- run: yarn cp-ci-env | ||
- run: | | ||
PKG_VERSION=$(node -p "require('./package.json').version") | ||
TAG_VERSION=${GITHUB_REF#refs/tags/v} | ||
if [ "$PKG_VERSION" != "$TAG_VERSION" ]; then | ||
echo "Package version ($PKG_VERSION) does not match tag version ($TAG_VERSION)" | ||
exit 1 | ||
fi | ||
- run: yarn install | ||
- run: yarn run hardhat export-abi | ||
- run: npm publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.RAZORNETWORKBOT }} | ||
NPM_TOKEN: ${{ secrets.RAZORDEPLOYER }} |
Oops, something went wrong.