Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

Commit

Permalink
Merge pull request #26 from Yolk-HQ/add-semantic-release-config
Browse files Browse the repository at this point in the history
Add a semantic-release config
  • Loading branch information
elliottsj authored Feb 23, 2020
2 parents a940dfe + c7aad9a commit dc2567f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 29 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
# semantic-release recipe shamelessly stolen from:
# https://github.com/semantic-release/semantic-release/blob/master/docs/recipes/github-actions.md
name: Release
on:
push:
branches:
- master
name: Test and Release
on: [push]

jobs:
release:
name: Release
test-and-release:
name: Run tests and release
runs-on: ubuntu-18.04
steps:
- name: Checkout
Expand All @@ -19,9 +15,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm t
run: npm test
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
run: npm run semantic-release
18 changes: 0 additions & 18 deletions .github/workflows/test.yml

This file was deleted.

5 changes: 5 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md

module.exports = {
branches: ['master'],
};

0 comments on commit dc2567f

Please sign in to comment.