Skip to content

chore(react-components): add amountinput and provisioning to readme (… #57

chore(react-components): add amountinput and provisioning to readme (…

chore(react-components): add amountinput and provisioning to readme (… #57

Workflow file for this run

name: Trunk
# Run after merge to trunk
# Note that this relies on branch protection having:
# Require branches to be up to date before merging
on:
push:
branches:
# $default-branch var isn't available in triggers
- main
jobs:
dev-canary:
if: ${{ github.repository_owner == 'agoric' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# without this setup-node errors on mismatched yarn versions
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
cache-dependency-path: yarn.lock
- run: yarn install --immutable
# Adapted from https://johnny.sh/notes/publish-canary-lerna-cicd/
- name: configure NPM token
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: check credentials
run: npm whoami
- name: publish to NPM tag
run: |
TAG=dev
yarn lerna publish --conventional-prerelease --canary --exact \
--dist-tag=$TAG --preid=$TAG-$(git rev-parse --short=7 HEAD) \
--no-push --yes