Skip to content

Commit

Permalink
build: reconfigure GitHub Actions for semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-ho committed Jul 20, 2020
1 parent 35f0731 commit 2dbcb35
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Node.js CI

on: [push, pull_request]
on: [pull_request]

jobs:
build:
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/package.yml

This file was deleted.

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

0 comments on commit 2dbcb35

Please sign in to comment.