Skip to content

Commit

Permalink
Merge pull request #2 from hayawata3626/1-setup-github-actions
Browse files Browse the repository at this point in the history
setup GitHub actions
  • Loading branch information
hayawata3626 authored Mar 26, 2021
2 parents 2a46466 + 01e532e commit a39cef6
Show file tree
Hide file tree
Showing 4 changed files with 6,090 additions and 187 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: build-tests
on: push

jobs:
test:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run Test
run: npm run test
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm ci
- name: Release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
Loading

0 comments on commit a39cef6

Please sign in to comment.