Skip to content

Commit b711f34

Browse files
committed
Update to node20 +semver:minor
1 parent cefcef4 commit b711f34

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# git-version-lite
22

3-
This template can be used to calculate a release or pre-release version.
3+
This template can be used to calculate a release or pre-release version.
44

55
## Index <!-- omit in toc -->
66

@@ -28,7 +28,7 @@ This action relies on git history in order to determine the next version. This
2828

2929
## Release vs Pre-release
3030

31-
You can control whether the action will generate a release or pre-release next version with the `calculate-prerelease-version` flag. The pre-release versions are intended for use with branches and a branch name is required to generate one.
31+
You can control whether the action will generate a release or pre-release next version with the `calculate-prerelease-version` flag. The pre-release versions are intended for use with branches and a branch name is required to generate one.
3232

3333
- Release version format: `major.minor.patch` (`1.0.0`)
3434
- Pre-release version format: `major.minor.patch-<cleaned-branch-name>.<formated-date>` (`0.1.0-my-branch.210907164247`)
@@ -92,15 +92,15 @@ Each of the outputs are available as environment variables and as action outputs
9292
- The `github-token` input was removed
9393
- This was only needed to create a ref on the repository so it is no longer needed.
9494
- The `NEXT_VERSION_SHA` output was removed
95-
- Workflows can use the value that git-version-lite outputted directly.
96-
- For `pull_request` workflow triggers the value was `github.event.pull_request.head.sha`.
95+
- Workflows can use the value that git-version-lite outputted directly.
96+
- For `pull_request` workflow triggers the value was `github.event.pull_request.head.sha`.
9797
- For all other workflow triggers the value was `github.sha`
9898

9999
## Usage Examples
100100

101101
```yml
102102
on:
103-
pull_request:
103+
pull_request:
104104

105105
jobs:
106106
get-prerelease-version:
@@ -116,14 +116,14 @@ jobs:
116116

117117
- id: get-version
118118
# You may also reference just the major version.
119-
uses: im-open/git-version-lite@v3.0.0
119+
uses: im-open/git-version-lite@v3.1.0
120120
with:
121121
calculate-prerelease-version: true
122122
branch-name: ${{ github.head_ref }} # github.head_ref works when the trigger is pull_request
123123
tag-prefix: v # Prepend a v to any calculated release/pre-release version
124124
fallback-to-no-prefix-search: true # Set to true can be helpful when starting to add tag prefixes
125125
default-release-type: major # If no tags are found, default to doing a major increment
126-
126+
127127
- run: |
128128
echo "The next version is ${{ env.NEXT_VERSION }}"
129129
echo "The next version without the prefix is ${{ steps.get-version.outputs.NEXT_VERSION_NO_PREFIX }}"
@@ -154,7 +154,7 @@ This repo uses [git-version-lite] in its workflows to examine commit messages to
154154

155155
### Source Code Changes
156156

157-
The files and directories that are considered source code are listed in the `files-with-code` and `dirs-with-code` arguments in both the [build-and-review-pr] and [increment-version-on-merge] workflows.
157+
The files and directories that are considered source code are listed in the `files-with-code` and `dirs-with-code` arguments in both the [build-and-review-pr] and [increment-version-on-merge] workflows.
158158

159159
If a PR contains source code changes, the README.md should be updated with the latest action version and the action should be recompiled. The [build-and-review-pr] workflow will ensure these steps are performed when they are required. The workflow will provide instructions for completing these steps if the PR Author does not initially complete them.
160160

@@ -175,7 +175,7 @@ If changes are made to the action's [source code], the [usage examples] section
175175

176176
### Tests
177177

178-
The [build-and-review-pr] workflow includes tests which are linked to a status check. That status check needs to succeed before a PR is merged to the default branch. When a PR comes from a branch, the workflow has access to secrets which are required to run the tests successfully.
178+
The [build-and-review-pr] workflow includes tests which are linked to a status check. That status check needs to succeed before a PR is merged to the default branch. When a PR comes from a branch, the workflow has access to secrets which are required to run the tests successfully.
179179

180180
When a PR comes from a fork, the workflow cannot access any secrets, so the tests won't have the necessary permissions to run. When a PR comes from a fork, the changes should be reviewed, then merged into an intermediate branch by repository owners so tests can be run against the PR changes. Once the tests have passed, changes can be merged into the default branch.
181181

action.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,32 +26,32 @@ inputs:
2626
description: 'The default release type that should be used when no tags are detected. Defaults to major. Accepted values: major|minor|patch'
2727
required: false
2828
default: 'major'
29-
29+
3030
outputs:
3131
NEXT_VERSION:
3232
description: 'The calculated next version.'
33-
33+
3434
NEXT_VERSION_NO_PREFIX:
3535
description: 'The calculated next version without the tag prefix.'
36-
36+
3737
NEXT_MINOR_VERSION:
3838
description: 'The next major.minor version.'
39-
39+
4040
NEXT_MINOR_VERSION_NO_PREFIX:
4141
description: 'The next major.minor version without the tag prefix.'
42-
42+
4343
NEXT_MAJOR_VERSION:
4444
description: 'The next major version.'
45-
45+
4646
NEXT_MAJOR_VERSION_NO_PREFIX:
4747
description: 'The next major version without the tag prefix.'
48-
48+
4949
PRIOR_VERSION:
5050
description: 'The previous major.minor.patch version.'
51-
51+
5252
PRIOR_VERSION_NO_PREFIX:
5353
description: 'The previous major.minor.patch version without the tag prefix.'
5454

5555
runs:
56-
using: 'node16'
56+
using: 'node20'
5757
main: 'dist/index.js'

0 commit comments

Comments
 (0)