Skip to content

Update build.yaml

Update build.yaml #11

Workflow file for this run

name: Auto Build
#on:
# release:
# types: [created]
on:
push:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Run build
run: npm run build
- name: Run license
run: npm run license
- name: Generate API References
run: npm run generate-docs
- name: Run Tests
run: npm test
- name: Configure npm for publishing
run: |
echo "registry=https://registry.npmjs.org/" > ~/.npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
- name: Publish to npm
run: |
ls -la
cd lib/
pwd
npm publish --access public