Skip to content

Commit

Permalink
Merge pull request #2 from bluehalo/1-hook-up-semantic-release
Browse files Browse the repository at this point in the history
ci: added github action for lint
  • Loading branch information
bluehalo-eacaps authored May 28, 2024
2 parents bd9394d + cec31b4 commit bbd2e3f
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 467 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# simple ci

name: bh-releaser ci

on:
push:
branches:
- "**"
pull_request:
branches:
- "master"

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.13.1]

steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run lint
3 changes: 3 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"branches": ["main"]
}
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
nodejs 18.17.0
nodejs 20.13.1

4 changes: 2 additions & 2 deletions lib/bh-calver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export default class BlueHaloCalVer extends Plugin {
}
}

getIncrementedVersionCI() {
return this.getIncrementedVersion(arguments[0]);
getIncrementedVersionCI(...args) {
return this.getIncrementedVersion(args[0]);
}

getIncrement() {
Expand Down
Loading

0 comments on commit bbd2e3f

Please sign in to comment.