Skip to content

improve example

improve example #402

Workflow file for this run

name: Node.js CI
on:
push:
branches: [main, dev, alpha]
pull_request:
branches: [main, dev, alpha]
concurrency:
group: nalanda-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Run test "${{ matrix.test-kind }}"
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'pnpm'
- name: install
run: pnpm install --frozen-lockfile
- name: build packages
run: pnpm build-packages
- name: lint
run: pnpm lint
- name: test
run: pnpm test
# - run: pnpx semantic-release
# if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/alpha'
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}