@gowri48/npmpublish 1.1.4 → 1.1.6

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,4 +1,4 @@
1
- name: testing1440
1
+ name: testing_1477_oidc
2
2
  on:
3
3
  workflow_dispatch:
4
4
 
@@ -11,16 +11,11 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
13
  - uses: actions/checkout@v6
14
- - uses: pnpm/action-setup@v4
15
- with:
16
- version: 10
17
14
 
18
- - uses: actions/setup-node@v6
15
+ - uses: Satishchoudhary94/setup-node@fix/oidc-support-1440
19
16
  with:
20
17
  node-version: '24'
21
- check-latest: true
22
18
  registry-url: 'https://registry.npmjs.org'
23
- cache: 'pnpm'
24
- - run: pnpm install
25
-
26
- - run: npm publish --access=public
19
+ cache: 'npm'
20
+
21
+ - run: npm publish
@@ -1,21 +1,21 @@
1
- name: testing-npm(1477)
2
-
1
+ name: testing_npm(1477)
3
2
  on:
4
3
  workflow_dispatch:
5
4
 
5
+ permissions:
6
+ contents: read
7
+ id-token: write
8
+
6
9
  jobs:
7
- build:
10
+ publish:
8
11
  runs-on: ubuntu-latest
9
-
10
12
  steps:
11
- - uses: actions/checkout@v5
13
+ - uses: actions/checkout@v6
12
14
 
13
- - name: Setup Node
14
- uses: Satishchoudhary94/setup-node@fix/oidc-support-1440
15
+ - uses: Satishchoudhary94/setup-node@fix/oidc-support-1440
15
16
  with:
16
17
  node-version: '24'
17
18
  registry-url: 'https://registry.npmjs.org'
19
+ cache: 'npm'
18
20
 
19
21
  - run: npm publish
20
- env:
21
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -17,8 +17,10 @@ jobs:
17
17
  uses: Satishchoudhary94/setup-node@fix/oidc-support-1440
18
18
  with:
19
19
  node-version: '24'
20
- registry-url: 'https://registry.npmjs.org'
20
+ registry-url: 'https://npm.pkg.github.com'
21
21
 
22
22
  - run: pnpm publish
23
23
  env:
24
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
24
+ NODE_AUTH_TOKEN: ${{ secrets.TOKEN_GITHUB }}
25
+
26
+
@@ -4,29 +4,30 @@ on:
4
4
  workflow_dispatch:
5
5
 
6
6
  jobs:
7
- build:
8
- runs-on: ${{ matrix.os-version }}
9
-
10
- strategy:
11
- fail-fast: false
12
- matrix:
13
- node-version: [24]
14
- os-version: [ubuntu-latest]
15
-
7
+ publish:
8
+ runs-on: ubuntu-latest
16
9
  steps:
17
10
  - uses: actions/checkout@v5
18
11
 
19
- - name: Setup Node (${{ matrix.node-version }})
20
- uses: gowridurgad/setup-node@dummy-token-removal
21
- # uses: actions/setup-node@v6
22
-
12
+ - uses: Satishchoudhary94/setup-node@fix/oidc-support-1440
23
13
  with:
24
- node-version: ${{ matrix.node-version }}
14
+ node-version: '20'
25
15
  registry-url: 'https://registry.npmjs.org'
26
- env:
27
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
28
16
 
29
- - run: yarn publish
17
+ - name: Enable Corepack + select Yarn version
18
+ run: |
19
+ corepack enable
20
+ corepack prepare yarn@2.4.3 --activate
21
+ yarn --version
22
+ - name: Configure npmjs registry auth
23
+ run: |
24
+ yarn config set npmRegistryServer "https://registry.npmjs.org"
25
+ yarn config set npmAlwaysAuth true
26
+ yarn config set npmAuthToken $NPM_AUTH_TOKEN
30
27
  env:
31
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
32
-
28
+ NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
29
+
30
+ - name: Install dependencies
31
+ run: yarn install --no-immutable
32
+
33
+
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@gowri48/npmpublish",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "Your package description",
5
5
  "main": "index.js",
6
6
  "repository": "github:gowridurgad/npm-publish",
7
7
  "author": "gowridurgad",
8
8
  "license": "ISC",
9
+ "scripts": {
10
+ "test": "echo \"Error: no test specified\" && exit 1"
11
+ },
9
12
  "publishConfig": {
10
13
  "access": "public"
11
14
  },
12
15
  "dependencies": {
13
- "axios": "^1.7.0"
16
+ "jest": "^29.6.1"
14
17
  },
15
18
  "engines": {
16
19
  "node": ">=12"
17
- },
18
- "scripts": {
19
- "test": "echo \"Error: no test specified\" && exit 1"
20
20
  }
21
- }
21
+ }