Skip to content

chore: test fixes (#1005) #24

chore: test fixes (#1005)

chore: test fixes (#1005) #24

Workflow file for this run

name: Release Package
on:
push:
tags:
- v*
jobs:
publish-npm-package:
runs-on: ubuntu-latest
steps:
- 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 }}