47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
|
|
name: publish
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
publication:
|
|
needs: build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 16
|
|
registry-url: https://registry.npmjs.org/
|
|
|
|
- name: install
|
|
run: npm ci
|
|
|
|
- name: lint
|
|
run: npm run lint
|
|
|
|
- name: build
|
|
run: npm run build:js
|
|
|
|
- name: docs
|
|
run: npm run docs
|
|
|
|
- name: browser tests
|
|
run: npm run test:browser-headless
|
|
|
|
- name: node tests and coverage
|
|
run: npm run coverage
|
|
|
|
- name: send report to coveralls.io
|
|
uses: coverallsapp/github-action@master
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: publish to NPM
|
|
run: npm publish
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |