-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
v1
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"env", | ||
{ | ||
"modules": false | ||
} | ||
] | ||
], | ||
"env": { | ||
"test": { | ||
"presets": [ | ||
[ | ||
"env", | ||
{ | ||
"targets": { | ||
"node": "current" | ||
} | ||
} | ||
] | ||
] | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.md | ||
docs/.vuepress/dist |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
{ | ||
"extends": [ | ||
"config:base" | ||
], | ||
"packageRules": [ | ||
{ | ||
"matchUpdateTypes": [ | ||
"minor", | ||
"patch" | ||
], | ||
"matchCurrentVersion": "!/^0/", | ||
"automerge": true | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,52 @@ | ||
name: CI | ||
name: lint and test | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
pull_request: | ||
branches: | ||
- dev | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: c-hive/gha-yarn-cache@v1 | ||
- run: yarn --frozen-lockfile | ||
- uses: pnpm/action-setup@v2.0.1 | ||
with: | ||
version: latest | ||
- run: pnpm i --frozen-lockfile | ||
- name: Lint | ||
run: npm run lint | ||
run: pnpm run lint | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: c-hive/gha-yarn-cache@v1 | ||
- run: yarn --frozen-lockfile | ||
- name: Unit tests | ||
uses: ianwalter/puppeteer-container@v4.0.0 | ||
- uses: pnpm/action-setup@v2.0.1 | ||
with: | ||
args: npm run test | ||
version: latest | ||
- run: pnpm i --frozen-lockfile | ||
- name: Unit tests | ||
run: pnpm run test | ||
- name: Coveralls | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
path-to-lcov: ./test/coverage/lcov.info | ||
path-to-lcov: ./coverage/lcov.info | ||
dist: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: c-hive/gha-yarn-cache@v1 | ||
- run: yarn --frozen-lockfile | ||
- uses: pnpm/action-setup@v2.0.1 | ||
with: | ||
version: latest | ||
- run: pnpm i --frozen-lockfile | ||
- name: Build dist | ||
run: pnpm run dist | ||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: pnpm/action-setup@v2.0.1 | ||
with: | ||
version: latest | ||
- run: pnpm i --frozen-lockfile | ||
- name: Build dist | ||
run: npm run dist | ||
run: pnpm run docs:build |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: publish doc | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
ref: dev | ||
- uses: pnpm/action-setup@v2.0.1 | ||
with: | ||
version: latest | ||
- run: pnpm i --frozen-lockfile | ||
- name: Build | ||
run: pnpm run docs:build | ||
- name: GitHub Pages | ||
uses: crazy-max/ghaction-github-pages@v2.5.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
target_branch: gh-pages | ||
build_dir: docs/.vuepress/dist | ||
jekyll: false |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: publish github | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
publish_github: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 12 | ||
- uses: actions/checkout@v2 | ||
- name: change package name | ||
uses: deef0000dragon1/json-edit-action@v1 | ||
env: | ||
KEY: name | ||
VALUE: "@uiv-lib/uiv" | ||
FILE: package.json | ||
- uses: pnpm/action-setup@v2.0.1 | ||
with: | ||
version: latest | ||
- run: pnpm i --frozen-lockfile | ||
- name: Build dist | ||
run: pnpm run dist | ||
- run: echo //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }} >> .npmrc | ||
- run: npm publish --registry=https://npm.pkg.github.com |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: publish npm | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
deploy_npm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '12.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- uses: pnpm/action-setup@v2.0.1 | ||
with: | ||
version: latest | ||
- run: pnpm i --frozen-lockfile | ||
- name: Build dist | ||
run: pnpm run dist | ||
- name: Publish NPM | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
.DS_Store | ||
node_modules/ | ||
npm-debug.log | ||
yarn-error.log | ||
test/coverage | ||
test/e2e/reports | ||
selenium-debug.log | ||
*.iml | ||
.idea/ | ||
*.log | ||
coverage | ||
*.gz | ||
dist-docs/ | ||
dist/ | ||
dist/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"endOfLine": "auto" | ||
} |