Skip to content

Commit

Permalink
Merge pull request #113 from jbrown1618/semantic-release
Browse files Browse the repository at this point in the history
Add semantic-release to the project
  • Loading branch information
jbrown1618 authored Jan 20, 2020
2 parents 89a33c1 + d87e315 commit 055fab6
Show file tree
Hide file tree
Showing 3 changed files with 5,600 additions and 101 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Publish to NPM

on:
push:
tags: 'v*'
branches:
- master

jobs:
verify:
Expand All @@ -22,25 +23,25 @@ jobs:
env:
CI: true
publish:
release:
needs: verify
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/setup-node@v1
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 12

- run: |
- name: Install and build
run: |
npm install
npm run build
env:
CI: true
- run: |
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
npm publish
- name: Release
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: npx semantic-release
Loading

0 comments on commit 055fab6

Please sign in to comment.