Skip to content

chore(release): publish v0.5.2 #41

chore(release): publish v0.5.2

chore(release): publish v0.5.2 #41

Workflow file for this run

name: Build & Publish
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'
- name: Install modules
run: yarn install --immutable
- name: Run check-all
run: yarn check-all
publish:
runs-on: ubuntu-latest
needs: test
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'
- name: Install modules
run: yarn install --immutable
- name: Build
run: yarn build
- name: Publish to npm
run: |
echo -e "npmAuthToken: ${NODE_AUTH_TOKEN}\n" >> .yarnrc.yml
lerna exec --no-private -- yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}