Skip to content

Commit

Permalink
Merge pull request #107 from maboroshi-inc/next
Browse files Browse the repository at this point in the history
次期リリースに向けて開発する
  • Loading branch information
haribote authored Nov 14, 2019
2 parents 9d04dc0 + 6583669 commit 4f6fca7
Show file tree
Hide file tree
Showing 19 changed files with 2,090 additions and 3,702 deletions.
47 changes: 0 additions & 47 deletions .circleci/config.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@maboroshi/eslint-config"]
}
4 changes: 4 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
template: |
## What’s Changed
$CHANGES
61 changes: 61 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Deploy

on:
release:
types: [published]

jobs:
test:
name: pre-process to publish

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: version-cehck
run: npx can-npm-publish --verbose

publish:
name: publish to npm

needs: [test]

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: https://registry.npmjs.org/
- name: npm install
run: npm ci
env:
CI: true
- name: npm publish
run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

deploy:
name: post-process to publish

needs: [test]

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: npm install, deploy document
run: |
npm ci
npx typedoc --out ./docs --mode file --ignoreCompilerErrors --theme minimal
npx gh-pages -d docs -u "${{ secrets.PUBLISH_GH_PAGES_USER }}" -r "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git"
env:
CI: true
26 changes: 26 additions & 0 deletions .github/workflows/pre-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Pre-Merge

on:
push:
branches-ignore:
- master

jobs:
test:
name: pre-process to merge

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: npm install, lint, type-check, and test
run: |
npm ci
npm run lint
npx tsc --noEmit
npm test -- --ci
env:
CI: true
16 changes: 16 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Pre-Release

on:
push:
branches:
- master

jobs:
update_draft_release:

runs-on: ubuntu-latest

steps:
- uses: toolmantim/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.16.0
12.13.0
Loading

0 comments on commit 4f6fca7

Please sign in to comment.