Skip to content

chore(release): release v1.0.2 #3

chore(release): release v1.0.2

chore(release): release v1.0.2 #3

Workflow file for this run

name: Release & Publish
on:
push:
tags:
- 'v*'
permissions: write-all
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create release
uses: ncipollo/release-action@v1
with:
draft: false
prerelease: false
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .npmrc file to publish to GitHub Packages
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@b2network'
- name: Install modules
run: yarn install
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Compile contracts
run: yarn compile
- name: Publish to GitHub Packages
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}