Skip to content

Merge branch 'master' of github.com:mbret/prose-reader #163

Merge branch 'master' of github.com:mbret/prose-reader

Merge branch 'master' of github.com:mbret/prose-reader #163

name: check_publish_lib
on:
push:
branches:
- 'master'
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: "18"
registry-url: "https://registry.npmjs.org"
- uses: actions/checkout@v4
# - name: Checkout release branch
# run: git checkout -b release
- name: Install
run: |
npm ci
# We only build library on this pipe
- name: Lint
run: |
npx lerna run lint --stream --scope @prose-reader/*
# We only build library on this pipe
- name: Build
run: |
npx lerna run build --stream --scope @prose-reader/*
- name: Test
run: |
npm test
- name: Publish
run: |
git config --global user.email "[email protected]"
git config --global user.name "Maxime Bret"
npx lerna publish minor --no-private --yes -- --ignore="prose-reader-{demo,front}"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}