@nikil.srinivasan/sample-npm-package 1.0.19 → 1.0.23

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.
@@ -1,34 +1,24 @@
1
- name: Publish npm package
2
-
3
- on:
4
- push:
5
- tags:
6
- - "v*"
7
-
8
- permissions:
9
- contents: read
10
- id-token: write
11
-
12
- jobs:
13
- publish:
14
- runs-on: ubuntu-latest
15
-
16
- steps:
17
- - uses: actions/checkout@v4
18
-
19
- - uses: actions/setup-node@v4
20
- with:
21
- node-version: 20
22
- registry-url: https://registry.npmjs.org
23
-
24
- - run: npm install
25
-
26
- - name: Verify npm login
27
- run: npm whoami
28
- env:
29
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
30
-
31
- - name: Publish
32
- run: npm publish --access public
33
- env:
34
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1
+ name: Publish Package
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ permissions:
9
+ id-token: write # Required for OIDC
10
+ contents: read
11
+
12
+ jobs:
13
+ publish:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+
18
+ - uses: actions/setup-node@v4
19
+ with:
20
+ node-version: "24"
21
+ registry-url: "https://registry.npmjs.org"
22
+ - run: npm i
23
+ - run: npm run build --if-present
24
+ - run: npm publish
package/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export function greet(name) {
2
- return `Hello ${name}`;
3
- }
1
+ export function greet(name) {
2
+ return `Hello ${name}`;
3
+ }
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@nikil.srinivasan/sample-npm-package",
3
- "version": "1.0.19",
3
+ "version": "1.0.23",
4
4
  "description": "Sample npm package",
5
5
  "main": "index.js",
6
6
  "type": "module",
7
- "license": "MIT"
7
+ "license": "MIT",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/Nikil-Kovai-co/sample-npm-package"
11
+ }
8
12
  }