2.10.0 #63
Workflow file for this run
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
name: Publish | |
on: | |
push: | |
tags: | |
- '*' | |
env: | |
ETH_NODE_URL: ${{ secrets.ETH_NODE_URL }} | |
jobs: | |
publish: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "18.20.0" | |
- name: Setup SSH to install dependencies | |
uses: webfactory/ssh-agent@v0.5.0 | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Compile contracts | |
run: npm run compile | |
- name: Run tests | |
run: npm test | |
- name: Inject slug/short variables | |
uses: rlespinasse/github-slug-action@v3.x | |
- name: Publish to NPM | |
uses: JS-DevTools/npm-publish@v1 | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
with: | |
token: ${{ secrets.NPM_ACCESS_TOKEN }} | |
access: "public" |