Skip to content

Commit

Permalink
Merge pull request #209 from ECFMP/semantic-release
Browse files Browse the repository at this point in the history
build: create new versions using semantic release
  • Loading branch information
AndyTWF authored Jul 30, 2022
2 parents 294a0f8 + f5b262c commit bbc793b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,27 @@ jobs:
- name: Run Tests
run: ./vendor/bin/sail artisan test

release:
name: "Release"
runs-on: ubuntu-latest
if: github.event_name == 'push' && (github.ref == 'refs/heads/main')
needs: [ test ]
steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
persist-credentials: false

- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release

deploy:
name: "Deploy"
runs-on: ubuntu-latest
if: github.event_name == 'push' && (github.ref == 'refs/heads/main')
needs: [test]
needs: [test, release]
steps:
- name: Checkout Code
uses: actions/checkout@v2
Expand Down
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,17 @@
"tailwindcss": "^3.1.6",
"tippy.js": "^6.3.7",
"vite": "^3.0.2"
},
"release": {
"repositoryUrl": "https://github.com/ECFMP/flow",
"branches": [
"main"
],
"tagFormat": "${version}",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github"
]
}
}

0 comments on commit bbc793b

Please sign in to comment.