Skip to content

Commit

Permalink
Setup semantic-release (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella authored Sep 1, 2022
1 parent a5c2c0d commit f7ebef6
Show file tree
Hide file tree
Showing 6 changed files with 10,408 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,29 @@ on: push

jobs:
build:
runs-on: macos-latest
strategy:
matrix:
runner:
- macos-latest
- ubuntu-latest

runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- run: ./test/bats/bin/bats test
- run: ./test/bats/bin/bats -T test/

release:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
cache: npm
- run: npm install
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
10 changes: 10 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# vi: ft=json

{
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github"
]
}
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs lts
Loading

0 comments on commit f7ebef6

Please sign in to comment.