Skip to content

Commit

Permalink
Merge pull request #32 from inovait/nodegit-fix
Browse files Browse the repository at this point in the history
fix(bump-version): remove leftover nodegit statements
  • Loading branch information
matejdro authored Jul 11, 2024
2 parents 76344f9 + 38139e4 commit f63f4d2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 39 deletions.
8 changes: 4 additions & 4 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ Example usage:

```yaml
- name: Bump minor version
uses: inovait/actions-common/bump-version@v7
uses: inovait/actions-common/bump-version@v10
with:
versionFile: 'version.txt'
increment: minor
Expand All @@ -295,7 +295,7 @@ Example usage:
```yaml
- name: Bump major version from file
id: version-step
uses: inovait/actions-common/bump-version@v7
uses: inovait/actions-common/bump-version@v10
with:
version: '1.0.0'
increment: major
Expand All @@ -305,7 +305,7 @@ Example usage:
```yaml
- name: Bump version from commits
id: version-step
uses: inovait/actions-common/bump-version@v7
uses: inovait/actions-common/bump-version@v10
with:
versionFile: 'version.txt'
increment: auto
Expand All @@ -321,7 +321,7 @@ you do not pass `from` and `to` inputs - they will be automatically populated to
```yaml
- name: Bump version from commits since last build
id: version-step
uses: inovait/actions-common/bump-version-since-last-build@v7
uses: inovait/actions-common/bump-version-since-last-build@v10
with:
versionFile: 'version.txt'
```
2 changes: 1 addition & 1 deletion bump-version-since-last-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ runs:
with:
main-branch-name: "${{ env.CURRENT_BRANCH }}"
- name: Get version
uses: inovait/actions-common/bump-version@v7
uses: inovait/actions-common/bump-version@v10
id: internal_version
with:
version: '${{ inputs.version }}'
Expand Down
28 changes: 0 additions & 28 deletions bump-version/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bump-version/dist/index.js.map

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions bump-version/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import { gatherCommits } from 'action_common_libs/src/commit-gathering'
import { getVersionToBump } from './automatic_version_detector'
import semver, { ReleaseType } from 'semver/preload'

// These require statements are needed as a workaround for the https://github.com/vercel/ncc/issues/1024
require('nodegit/dist/repository.js')
require('nodegit/dist/commit.js')
require('nodegit/dist/oid.js')

async function main(): Promise<void> {
try {
const versionRaw: string = core.getInput('version', { trimWhitespace: true })
Expand Down

0 comments on commit f63f4d2

Please sign in to comment.