Skip to content

Commit bd35015

Browse files
committed
Update node from v20 to v24
1 parent 28dc55f commit bd35015

File tree

7 files changed

+87
-83
lines changed

7 files changed

+87
-83
lines changed

.github/workflows/dependencies.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Dependencies
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
dependency-review:
8+
name: Dependency Review2
9+
uses: DopplerHQ/.github/.github/workflows/dependencies.yaml@emily/deps-template

.github/workflows/main.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
1+
name: Test
12
on: [push]
23

4+
permissions:
5+
contents: read
6+
37
jobs:
48
test_action:
59
runs-on: ${{ matrix.os }}
610
strategy:
711
matrix:
8-
os: [ubuntu-latest, ubuntu-20.04, macos-latest, macos-11, windows-latest, windows-2019]
12+
os: [ubuntu-latest, macos-latest, windows-latest]
913
name: Install the cli
1014
steps:
1115
- name: Checkout
12-
uses: actions/checkout@v2
16+
uses: actions/checkout@v6
17+
- uses: actions/setup-node@v4
18+
- run: npm ci
1319
- name: Install CLI
1420
uses: ./
1521
id: install
1622
- name: Test CLI
17-
run: doppler --version
23+
run: doppler --version

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
node_modules
2+
13
# Logs
24
logs
35
*.log

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ branding:
44
icon: 'download'
55
color: 'blue'
66
runs:
7-
using: 'node20'
7+
using: 'node24'
88
main: 'index.js'
99

index.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const core = require('@actions/core');
2-
const tc = require('@actions/tool-cache');
3-
const io = require('@actions/io');
4-
const { execSync } = require('child_process');
1+
import * as core from '@actions/core';
2+
import * as tc from '@actions/tool-cache';
3+
import * as io from '@actions/io';
4+
import { execSync } from 'child_process';
55

66
const workspace = process.env.GITHUB_WORKSPACE;
77
const binDir = `${workspace}/bin`;
@@ -44,8 +44,7 @@ async function executeInstallSh(installPath) {
4444
// execute script
4545
await io.mkdirP(installPath);
4646
const installCommand = `${downloadPath} --debug --no-package-manager --install-path ${installPath}`
47-
stdout = execSync(installCommand, { timeout: 30000 });
48-
console.log(Buffer.from(stdout).toString("utf-8"))
47+
execSync(installCommand, { timeout: 30000, stdio: "inherit" });
4948

5049
// add binary to PATH
5150
core.addPath(installPath);

package-lock.json

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

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "cli-action",
3-
"version": "3.0.0",
3+
"version": "4.0.0",
44
"description": "GitHub Action to install the Doppler CLI",
55
"main": "index.js",
6+
"module": "true",
67
"scripts": {
78
"test": "echo \"Error: no test specified\" && exit 1"
89
},
@@ -18,8 +19,11 @@
1819
},
1920
"homepage": "https://github.com/DopplerHQ/cli-action#readme",
2021
"dependencies": {
21-
"@actions/core": "^1.10.1",
22-
"@actions/io": "^1.1.3",
23-
"@actions/tool-cache": "^1.7.2"
22+
"@actions/core": "^3.0.0",
23+
"@actions/io": "^3.0.0",
24+
"@actions/tool-cache": "^4.0.0"
25+
},
26+
"devDependencies": {
27+
"@types/node": "^24.0.0"
2428
}
2529
}

0 commit comments

Comments
 (0)