kartykp-prod-oidc-test-pkg 1.0.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.
Files changed (3) hide show
  1. package/README.md +21 -0
  2. package/index.js +3 -0
  3. package/package.json +12 -0
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # kartykp-prod-oidc-test-pkg
2
+
3
+ Test package for verifying **trusted OIDC publishing** to the public npm
4
+ registry (`registry.npmjs.org`).
5
+
6
+ Published via the `kartykp_production_oidc_publish.yml` workflow using npm's
7
+ native OIDC trusted publishing (no long-lived token required).
8
+
9
+ ## Prerequisites
10
+ Configure the package's **Trusted Publisher** on npmjs.com:
11
+ <https://www.npmjs.com/package/kartykp-prod-oidc-test-pkg/access>
12
+
13
+ - Publisher: **GitHub Actions**
14
+ - Organization/owner: `npm`
15
+ - Repository: `personal`
16
+ - Workflow filename: `kartykp_production_oidc_publish.yml`
17
+ - Environment: *(leave blank)*
18
+
19
+ ## Publishing a new version
20
+ Run the **kartykp_production_oidc_publish** workflow from the Actions UI and set
21
+ `package_version` to a version higher than the currently published one.
package/index.js ADDED
@@ -0,0 +1,3 @@
1
+ module.exports = function hello() {
2
+ return "hello from kartykp-prod-oidc-test-pkg";
3
+ };
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "kartykp-prod-oidc-test-pkg",
3
+ "version": "1.0.0",
4
+ "description": "Package for testing trusted OIDC publishing to the public npm registry.",
5
+ "license": "ISC",
6
+ "author": "kartykp",
7
+ "type": "commonjs",
8
+ "main": "index.js",
9
+ "scripts": {
10
+ "test": "echo \"Error: no test specified\" && exit 1"
11
+ }
12
+ }