ci: Update versioning workflow and added test workflow
parent
000434c446
commit
2295c9f840
|
@ -0,0 +1,20 @@
|
|||
name: 'Action to test the action locally with act'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: "./conventional-changelog-action"
|
||||
|
||||
- run: cd conventional-changelog-action && yarn --production
|
||||
|
||||
- name: Generate changelog
|
||||
id: changelog
|
||||
uses: ./
|
||||
env:
|
||||
ENV: 'test'
|
||||
with:
|
||||
github-token: ${{ secrets.github_token }}
|
|
@ -14,4 +14,4 @@ jobs:
|
|||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.github_token }}
|
||||
with:
|
||||
- publish_latest_tag: true
|
||||
publish_latest_tag: 'true'
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
const conventionalRecommendedBump = require('conventional-recommended-bump')
|
||||
|
||||
async function run() {
|
||||
conventionalRecommendedBump({ preset: 'angular', tagPrefix: 'v' }, async(error, recommendation, tag) => {
|
||||
console.log(recommendation, tag)
|
||||
})
|
||||
}
|
||||
|
||||
run()
|
Loading…
Reference in New Issue