Skip to content

Commit

Permalink
Merge pull request #1 from kmarilleau/add-release
Browse files Browse the repository at this point in the history
add semantic-release
  • Loading branch information
eralumin authored Feb 28, 2021
2 parents b2f45ea + 214cd90 commit 1d5aefd
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 20 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on: [push, pull_request]

jobs:
test:
name: Test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15

- name: Install Go Dependencies
run: go mod download

- name: Test
run: go test -v .

release:
name: Release
runs-on: ubuntu-latest
needs: test

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: 12

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
20 changes: 0 additions & 20 deletions .github/workflows/test.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"branches": [
"main", {
"name": "beta",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github"
]
}

0 comments on commit 1d5aefd

Please sign in to comment.