ci: Update versioning workflow and added test workflow

releases/v3
Tycho Bokdam 2020-07-01 19:04:46 +02:00
parent 000434c446
commit 2295c9f840
No known key found for this signature in database
GPG Key ID: A0FAE77C8CDF33C7
3 changed files with 30 additions and 1 deletions

20
.github/workflows/test.yml vendored 100644
View File

@ -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 }}

View File

@ -14,4 +14,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.github_token }} GITHUB_TOKEN: ${{ secrets.github_token }}
with: with:
- publish_latest_tag: true publish_latest_tag: 'true'

9
src/test.js 100644
View File

@ -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()