Skip to content

Commit d26133a

Browse files
Shadowghostdscho
authored andcommitted
Bump action version to 2.0.0
The switch to the Node 24 runtime is a breaking change for any consumer that pins to `@v1`, because GitHub will no longer execute that tag's `dist/index.js` once the Node 20 runtime is retired. A major version bump signals this cleanly: existing `@v1` users keep working until the runtime sunset, while new consumers and upgraders reference `@v2`. The README is updated accordingly: the usage example now references `@v2`, the recommended Node version for local development is changed from the long-outdated "Node 12" to "Node 24", and the example test output is refreshed to reflect the vitest output format. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 7ecbabc commit d26133a

3 files changed

Lines changed: 11 additions & 24 deletions

File tree

README.md

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v3
1515
- name: Setup Git for Windows' minimal SDK
16-
uses: git-for-windows/setup-git-for-windows-sdk@v1
16+
uses: git-for-windows/setup-git-for-windows-sdk@v2
1717
- name: Build
1818
shell: bash
1919
run: make
@@ -78,7 +78,7 @@ On self-hosted runners, the SDK files persist after the workflow run is done. To
7878

7979
## Developing _this_ Action
8080

81-
> First, you'll need to have a reasonably modern version of `node` handy, such as Node 12.
81+
> First, you'll need to have a reasonably modern version of `node` handy, such as Node 24.
8282

8383
Install the dependencies
8484

@@ -97,25 +97,12 @@ Run the tests :heavy_check_mark:
9797
```bash
9898
$ npm test
9999
100-
> setup-git-for-windows-sdk@0.0.0 test C:\Users\me\setup-git-for-windows-sdk
101-
> jest
100+
✓ __tests__/main.test.ts (1)
101+
✓ skipping tests requiring network access
102+
✓ src/__tests__/git.test.ts (2)
103+
✓ git (2)
102104
103-
PASS __tests__/main.test.ts (28.869 s)
104-
√ skipping tests requiring network access (224 ms)
105-
106-
console.log
107-
If you want to run tests that access the network, set:
108-
export RUN_NETWORK_TESTS=true
109-
110-
at __tests__/main.test.ts:26:13
111-
112-
PASS __tests__/downloader.test.ts (29.889 s)
113-
√ can obtain build ID (9 ms)
114-
115-
Test Suites: 2 passed, 2 total
116-
Tests: 2 passed, 2 total
117-
Snapshots: 0 total
118-
Time: 31.11 s
119-
Ran all test suites.
105+
Test Files 2 passed (2)
106+
Tests 3 passed (3)
120107
...
121108
```

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-git-for-windows-sdk",
3-
"version": "1.12.0",
3+
"version": "2.0.0",
44
"private": true,
55
"description": "Set up an environment to develop Git for Windows TypeScript template action",
66
"main": "lib/main.js",

0 commit comments

Comments
 (0)