Skip to content

add LICENSE

add LICENSE #15

Workflow file for this run

name: 'ngx-mitaa publish'
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node 16
uses: actions/setup-node@v1
with:
node-version: 16
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build:lib
# - name: Test
# run: npm run test:lib-coverage
- name: Archive build
if: success()
uses: actions/upload-artifact@v1
with:
name: deploy_dist
path: dist/ngx-mitaa
# - name: Archive code coverage result
# if: success()
# uses: actions/upload-artifact@v1
# with:
# name: deploy_coverage
# path: coverage/ngx-mitaa
publish:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Download build
uses: actions/download-artifact@v1
with:
name: deploy_dist
- name: Node
uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: Publish
run: cd dist/ngx-mitaa && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}