docs: update README #6
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: | |
branches: | |
- b2-main | |
permissions: write-all | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.PUBLISH_PAT }} | |
- name: Configure Git User | |
run: | | |
git config --global user.email "ci@b2network" | |
git config --global user.name "ci-$GITHUB_ACTOR" | |
- 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 --frozen-lockfile | |
- name: Build and Publish to GitHub Packages | |
run: yarn lerna publish patch --yes |