Skip to content

Commit 9d9a1ce

Browse files
upgrade to node24
1 parent 7fbcba1 commit 9d9a1ce

5 files changed

Lines changed: 46 additions & 9 deletions

File tree

.github/workflows/test_install.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: "Set up Node.js"
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: "20"
24+
node-version: "24"
2525
- name: "Install dependencies"
2626
run: npm install
2727
- name: "Run eslint"
@@ -80,7 +80,7 @@ jobs:
8080
- name: "Set up Node.js"
8181
uses: actions/setup-node@v4
8282
with:
83-
node-version: "20"
83+
node-version: "24"
8484

8585
- name: "Install dependencies"
8686
run: npm install

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
---
10+
11+
### Breaking Changes
12+
13+
- **Node.js requirement updated to 24+** - The action now requires Node.js 24 or higher. If you're using this action, GitHub Actions will automatically use Node 24 runtime. For development and testing, ensure you have Node 24+ installed.
14+
15+
### Changed
16+
17+
- Updated `action.yml` to use `node24` runtime
18+
- Updated test workflows to run on Node 24
19+
- Updated documentation to v2
20+
21+
## [1.0.0] - 2024
22+
---
23+
### Initial Release
24+
25+
- Install Cloudsmith CLI via pip or executable download
26+
- OIDC authentication support
27+
- API Key authentication support
28+
- OIDC-only authentication mode
29+
- Configurable retry logic for OIDC authentication
30+
- CLI configuration options (api-host, api-proxy, api-ssl-verify, api-user-agent)
31+
- Support for Linux, macOS, and Windows runners
32+
- Node 20 runtime support
33+
34+
[1.0.0]: https://github.com/cloudsmith-io/cloudsmith-cli-action/releases/tag/v1.0.0

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Test Status](https://github.com/cloudsmith-io/cloudsmith-cli-action/actions/workflows/test_install.yml/badge.svg)](https://github.com/cloudsmith-io/cloudsmith-cli-action/actions/workflows/test_install.yml)
44
[![GitHub Marketplace](https://img.shields.io/badge/Marketplace-Cloudsmith%20CLI%20Install-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=github)](https://github.com/marketplace/actions/cloudsmith-cli-install-action)
5-
[![Node.js Version](https://img.shields.io/badge/node-20-brightgreen.svg)](https://nodejs.org/)
5+
[![Node.js Version](https://img.shields.io/badge/node-24-brightgreen.svg)](https://nodejs.org/)
66
[![License](https://img.shields.io/github/license/cloudsmith-io/cloudsmith-cli-action.svg)](LICENSE)
77
[![Version](https://img.shields.io/github/v/release/cloudsmith-io/cloudsmith-cli-action.svg)](https://github.com/cloudsmith-io/cloudsmith-cli-action/releases)
88

@@ -42,7 +42,7 @@ See [CLI configuration documentation](https://github.com/cloudsmith-io/cloudsmit
4242
Cloudsmith OIDC [documentation](https://docs.cloudsmith.com/authentication/openid-connect)
4343

4444
```yaml
45-
uses: cloudsmith-io/cloudsmith-cli-action@v1
45+
uses: cloudsmith-io/cloudsmith-cli-action@v2
4646
with:
4747
oidc-namespace: 'your-oidc-namespace'
4848
oidc-service-slug: 'your-service-account-slug'
@@ -53,7 +53,7 @@ with:
5353
Personal API Key can be found [here](https://cloudsmith.io/user/settings/api/). For CI-CD deployments we recommend using [Service Accounts](https://docs.cloudsmith.com/accounts-and-teams/service-accounts).
5454
5555
```yaml
56-
uses: cloudsmith-io/cloudsmith-cli-action@v1
56+
uses: cloudsmith-io/cloudsmith-cli-action@v2
5757
with:
5858
api-key: 'your-api-key'
5959
```
@@ -63,7 +63,7 @@ with:
6363
If you only need to authenticate with Cloudsmith's API without installing the CLI:
6464
6565
```yaml
66-
uses: cloudsmith-io/cloudsmith-cli-action@v1
66+
uses: cloudsmith-io/cloudsmith-cli-action@v2
6767
with:
6868
oidc-namespace: 'your-oidc-namespace'
6969
oidc-service-slug: 'your-service-account-slug'
@@ -103,7 +103,7 @@ jobs:
103103
uses: actions/checkout@v4
104104
105105
- name: Install Cloudsmith CLI
106-
uses: cloudsmith-io/cloudsmith-cli-action@v1
106+
uses: cloudsmith-io/cloudsmith-cli-action@v2
107107
with:
108108
oidc-namespace: 'your-oidc-namespace'
109109
oidc-service-slug: 'your-service-account-slug'

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ outputs:
6161
oidc-token:
6262
description: "JWT token generated by the Cloudsmith CLI setup action"
6363
runs:
64-
using: 'node20'
64+
using: 'node24'
6565
main: "dist/index.js"
6666

6767
branding:

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
22
"name": "cloudsmith-github-action",
3-
"version": "1.0.3",
3+
"version": "2.0.0",
44
"description": "A GitHub Action to install Cloudsmith CLI and authenticate using OIDC",
55
"main": "dist/index.js",
6+
"engines": {
7+
"node": ">=24"
8+
},
69
"scripts": {
710
"build": "ncc build src/main.js -o dist",
811
"lint": "eslint .",

0 commit comments

Comments
 (0)