cloud-cost-cli 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/RELEASE.md CHANGED
@@ -4,31 +4,20 @@ This document describes how to publish a new version of cloud-cost-cli.
4
4
 
5
5
  ## Prerequisites
6
6
 
7
- ### 1. NPM Granular Access Token
8
-
9
- npm now uses "Granular Access Tokens" instead of automation tokens.
10
-
11
- **Create the token:**
12
- 1. Go to https://www.npmjs.com/settings/YOUR_USERNAME/tokens
13
- 2. Click **"Generate New Token"** **"Granular Access Token"**
14
- 3. Configure the token:
15
- - **Token name**: `cloud-cost-cli-publish` (or any name)
16
- - **Expiration**: 1 year (or No expiration)
17
- - **Packages and scopes**: Select packages Choose `cloud-cost-cli`
18
- - **Permissions**: Read and write
19
- - **⚠️ IMPORTANT**: Under "Additional options" **Disable "Require two-factor authentication for this token"**
20
- - This allows GitHub Actions to publish without OTP
21
- - The token itself is still secure (stored in GitHub Secrets)
22
- 4. Click **"Generate Token"**
23
- 5. Copy the token (starts with `npm_...`)
24
-
25
- ### 2. Add Token to GitHub Secrets
26
-
27
- 1. Go to https://github.com/vuhp/cloud-cost-cli/settings/secrets/actions
28
- 2. Click **"New repository secret"** (or edit existing `NPM_TOKEN`)
29
- 3. Name: `NPM_TOKEN`
30
- 4. Value: (paste the `npm_...` token with 2FA disabled)
31
- 5. Click **"Add secret"** or **"Update secret"**
7
+ ### npm Trusted Publishing (OIDC)
8
+
9
+ This project uses **npm trusted publishing** via GitHub Actions. No npm token is required!
10
+
11
+ **Configuration:**
12
+ - Already configured on npm for this package
13
+ - GitHub Actions is set as a trusted publisher
14
+ - Publishing happens automatically via OIDC (OpenID Connect)
15
+
16
+ **Benefits:**
17
+ - No tokens to rotate or secure
18
+ - No 2FA required for automation
19
+ - More secure (GitHub's identity proves authenticity)
20
+ - Automatic provenance statements
32
21
 
33
22
  ## Steps to Release
34
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-cost-cli",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Optimize your cloud spend in seconds",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -10,6 +10,8 @@
10
10
  "dev": "tsx bin/cloud-cost-cli.ts",
11
11
  "build": "tsc",
12
12
  "test": "vitest",
13
+ "test:ui": "vitest --ui",
14
+ "test:coverage": "vitest --coverage",
13
15
  "lint": "eslint src/**/*.ts",
14
16
  "format": "prettier --write src/**/*.ts"
15
17
  },
@@ -46,9 +48,16 @@
46
48
  "@aws-sdk/client-cost-explorer": "^3.712.0",
47
49
  "@aws-sdk/client-ec2": "^3.712.0",
48
50
  "@aws-sdk/client-elastic-load-balancing-v2": "^3.712.0",
51
+ "@aws-sdk/client-pricing": "^3.980.0",
49
52
  "@aws-sdk/client-rds": "^3.712.0",
50
53
  "@aws-sdk/client-s3": "^3.712.0",
51
54
  "@aws-sdk/credential-providers": "^3.712.0",
55
+ "@azure/arm-compute": "^23.3.0",
56
+ "@azure/arm-monitor": "^7.0.0",
57
+ "@azure/arm-network": "^35.0.0",
58
+ "@azure/arm-sql": "^10.0.0",
59
+ "@azure/arm-storage": "^19.1.0",
60
+ "@azure/identity": "^4.13.0",
52
61
  "chalk": "^5.3.0",
53
62
  "cli-table3": "^0.6.5",
54
63
  "commander": "^12.1.0",
@@ -60,10 +69,11 @@
60
69
  "@types/node": "^22.10.5",
61
70
  "@typescript-eslint/eslint-plugin": "^8.19.1",
62
71
  "@typescript-eslint/parser": "^8.19.1",
72
+ "@vitest/ui": "^1.6.1",
63
73
  "eslint": "^8.57.1",
64
74
  "prettier": "^3.4.2",
65
75
  "tsx": "^4.19.2",
66
76
  "typescript": "^5.7.3",
67
- "vitest": "^1.6.0"
77
+ "vitest": "^1.6.1"
68
78
  }
69
79
  }