@nikil.srinivasan/sample-npm-package 1.0.0 → 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,30 +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
- - name: Checkout
18
- uses: actions/checkout@v4
19
-
20
- - name: Setup Node
21
- uses: actions/setup-node@v4
22
- with:
23
- node-version: 20
24
- registry-url: https://registry.npmjs.org
25
-
26
- - name: Install dependencies
27
- run: npm ci || npm install
28
-
29
- - name: Publish package
30
- run: npm publish --access public
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.0",
3
+ "version": "1.0.23",
4
4
  "description": "Sample npm package",
5
5
  "main": "index.js",
6
6
  "type": "module",
7
- "license": "MIT"
8
- }
7
+ "license": "MIT",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/Nikil-Kovai-co/sample-npm-package"
11
+ }
12
+ }