Skip to content

fix ci

fix ci #286

Workflow file for this run

name: RPG CI
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm i
- run: npm test
build_and_publish:
needs: tests
if: github.ref == 'refs/heads/v4'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- run: npm run build
- name: "Version and publish"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor}}@users.noreply.github.com"
npx lerna version --conventional-commits --no-push --yes
npx lerna publish from-git --no-private --loglevel verbose --yes