diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b59f012..dd62dd6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,8 +25,7 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - run: npm run dev-up - - run: npm run build + - run: npm install # will also, through `prepare` hook, 1. install ./app, and 2. build # Only run linter once, for faster CI. Align the verisons of Node here with above and publish.yml. - if: matrix.platform == 'ubuntu-latest' && matrix.node-version == '14.x' run: npm run lint diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b223d72..be89262 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,9 +14,10 @@ jobs: # Align the version of Node here with ci.yml. node-version: '14.x' registry-url: 'https://registry.npmjs.org' - - run: npm run dev-up - - run: npm run build + # Will also (through `prepare` hook): 1. install ./app, and 2. build + - run: npm install - run: npm test + - run: npm run lint - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file