ahp-criteria-helper
Version:
A simple package that helps to find the weights of n criteria, and also calculate your consistency ratio.
51 lines (46 loc) • 1.11 kB
YAML
name: Publish package
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
quality:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
node-version:
- 10.x
- 12.x
- 14.x
- 15.x
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build
publish:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/master' }}
needs:
- quality
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build
- run: npm run semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}