Skip to content

feat: npm workspaces over lerna #12

feat: npm workspaces over lerna

feat: npm workspaces over lerna #12

Workflow file for this run

name: Test
on:
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '16.x'
scope: '@foo-software'
- name: Install
run: |
npm install --workspaces
# build packages synchronously to ensure sibling dependencies are built.
# @TODO - see if it's possible to do this better
# first build the one that consumed by siblings, then just build all
npm run build --workspace="@foo-software/ghost-graphql"
npm run build --workspaces --if-present
- name: Integration Tests
run: |
cd packages/ghost-graphql-integration-tests
npm run test