Skip to content

Merge pull request #49 from killerkc12/fix-devdependencies #44

Merge pull request #49 from killerkc12/fix-devdependencies

Merge pull request #49 from killerkc12/fix-devdependencies #44

Workflow file for this run

name: Publish packages
on:
push:
branches:
- master
- release-*
pull_request:
branches:
- master
- release-*
jobs:
docs:
name: Build docs
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm run docs
build:
name: Build bundle and publish
runs-on: ubuntu-latest
needs: [docs]
steps:
- name: Checkout ${{ matrix.node }}
uses: actions/checkout@v3
- name: Setup node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: 16
- name: Cache dependencies ${{ matrix.node }}
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node }}
- run: |
npm ci
npm run build
npm publish --dry-run