add LICENSE #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |