Skip to content

Commit

Permalink
ci: Setup versioning for releases (#5)
Browse files Browse the repository at this point in the history
* ci: Setup versioning for releases

These changes will let us version the repo so that as we start putting
more and more actions into this repository that will ultimately be
re-used by other repos (like any helmfile or terraform actions), it'll
be great to be able to version these so that we don't run into risk of
breaking other consuming repos.

* Correct file path

* Move releaserc file

Co-authored-by: Aaron <[email protected]>
  • Loading branch information
Aaron Batilo and abatilo authored Aug 25, 2020
1 parent 2aa7e5d commit b934adf
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Lint PR"
on:
pull_request:
types:
- opened
- edited
- synchronize

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Release
on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Generate release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
8 changes: 8 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github"
]
}

0 comments on commit b934adf

Please sign in to comment.