Skip to content

Merge pull request #7 from DuncanMcPherson/autoMocker-init #7

Merge pull request #7 from DuncanMcPherson/autoMocker-init

Merge pull request #7 from DuncanMcPherson/autoMocker-init #7

Workflow file for this run

name: Deploy to NPM
on:
workflow_dispatch:
push:
branches:
- master
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
build_pack_and_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: cache node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }}
- run: npm ci
- run: npm run setup-package
- run: cd dist
- run: npm pack && npm publish