Skip to content

1.0.0-beta.3

1.0.0-beta.3 #5

name: Publish Package
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.18.0
registry-url: 'https://registry.npmjs.org'
scope: '@matterlabs'
- run: yarn
- env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_NPM_MATTERLABS_AUTOMATION_TOKEN }}
run: |
if [[ "${{ github.event.release.target_commitish }}" == "main" ]]; then
yarn publish --tag latest --access public
elif [[ "${{ github.event.release.target_commitish }}" == "beta" ]]; then
yarn publish --tag beta --access public
fi