Skip to content

Update babel monorepo #129

Update babel monorepo

Update babel monorepo #129

Workflow file for this run

name: build
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
with:
fetch-depth: "0"
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
scope: '@contentgrid'
- run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: Publish
if: ${{ github.ref_type == 'tag' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run:
if git branch -a --format '%(refname:short)' --contains '${{ github.sha }}' | grep -E '^origin/main$' ; then
git checkout main;
yarn lerna publish ${{ github.ref_name }} --yes --no-push --no-git-tag-version;
else
exit 1;
fi