feat: update!

This commit is contained in:
Anthony Fu committed 2021-02-17 15:31:32 +08:00
1 parent a610154140
commit bba0a5148a
12 files changed
+5995 -8979

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: '12'
- run: npm i -g pnpm @antfu/ni
- run: nci
- run: nr test --if-present
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: npx conventional-github-releaser -p angular
env:
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}
+26 -10
View File
@@ -1,24 +1,40 @@
name: Test
on: [push]
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
node-version: [12.x, 14.x, 15.x]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Install
run: npm ci
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Lint
run: npm run lint
- name: Setup
run: npm i -g pnpm @antfu/ni
- name: Test
run: npm test
- name: Install
run: nci
- name: Lint
run: nr lint --if-present
- name: Test
run: nr test --if-present