Skip to content

Commit

Permalink
chore: add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Hidetaka Okamoto committed Jun 11, 2020
1 parent 13d1809 commit 4e11e0d
Show file tree
Hide file tree
Showing 4 changed files with 3,158 additions and 62 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Node CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: yarn install and test
run: |
yarn
yarn test
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Release package"
on:
push:
branches:
- master

jobs:
release_package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- name: "npm ci"
run: npm ci

- name: "npm run semantic-release"
run: npm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"create:changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'docs: update changelog'",
"create:ogp": "npm run create:ogp:dark && npm run create:ogp:light",
"create:ogp:dark": "npx @kamataryo/gh-ogp dark > ogp_dark.png",
"create:ogp:light": "npx @kamataryo/gh-ogp light > ogp_light.png"
"create:ogp:light": "npx @kamataryo/gh-ogp light > ogp_light.png",
"semantic-release": "semantic-release"
},
"keywords": [],
"bugs": {
Expand Down Expand Up @@ -80,6 +81,7 @@
"lint-staged": "^9.2.5",
"rollup": "^1.20.3",
"rollup-plugin-typescript2": "^0.24.0",
"semantic-release": "^17.0.8",
"ts-jest": "^24.0.2",
"tslib": "^1.10.0",
"typedoc": "^0.15.0",
Expand Down
Loading

0 comments on commit 4e11e0d

Please sign in to comment.