Skip to content

chore: fix

chore: fix #44

Workflow file for this run

name: Ci
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@master
- uses: borales/actions-yarn@v4
with:
cmd: install
- name: run
run: |
yarn run build
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@master
- uses: borales/actions-yarn@v4
name: install
with:
cmd: install
- name: run
run: yarn run test
- uses: codecov/codecov-action@v3
name: upload
with:
directory: ./coverage/ngx-filesaver
files: ./*.html
token: ${{ secrets.CODECOV_TOKEN }}
lint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@master
- uses: borales/actions-yarn@v4
with:
cmd: install
- uses: borales/actions-yarn@v4
with:
cmd: lint
site:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@master
- uses: borales/actions-yarn@v4
with:
cmd: install
- name: build
run: |
node ./node_modules/@angular/cli/bin/ng build --base-href /ngx-filesaver/
cp ./dist/browser/index.html ./dist/browser/404.html
ls ./dist/browser
- name: deploy-to-gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist/browser