@gowri48/publishingtonpm 1.0.1 → 1.0.3

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.
@@ -0,0 +1,25 @@
1
+ name: Test dummy token does not override user .npmrc
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ jobs:
7
+ dummy-does-not-override:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v5
11
+
12
+
13
+ - name: Setup Node with registry-url
14
+ uses: actions/setup-node@v6
15
+ with:
16
+ node-version: "24"
17
+ registry-url: "https://registry.npmjs.org/"
18
+ env:
19
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_ll }} # from users .npmrc
20
+
21
+
22
+ - name: npm publish
23
+ run: npm publish
24
+ env:
25
+ NPM_TOKEN_TEST: ${{ secrets.NPM_TOKEN }} # from users .npmrc
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gowri48/publishingtonpm",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Your package description",
5
5
  "main": "index.js",
6
6
  "repository": "github:gowridurgad/publishing-npm",
@@ -1,23 +0,0 @@
1
- name: TestRemoveDummyToken
2
-
3
- on:
4
- workflow_dispatch:
5
-
6
- jobs:
7
- no-token-fails:
8
- runs-on: ubuntu-latest
9
- steps:
10
- - uses: actions/checkout@v5
11
-
12
- - name: Setup Node with registry-url (no token provided)
13
- uses: Satishchoudhary94/setup-node@fix/oidc-support-1440
14
- with:
15
- node-version: '12'
16
-
17
-
18
- - name: Show .npmrc contents
19
- run: cat $NPM_CONFIG_USERCONFIG
20
-
21
- - name: npm install (this will fail without dummy token)
22
- run: npm install lodash --dry-run
23
-