ins-queue-actions 1.2.97 → 1.2.105

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.
@@ -42,13 +42,39 @@ jobs:
42
42
  - uses: actions/setup-node@v4
43
43
  with:
44
44
  node-version: 20
45
- registry-url: https://registry.npmjs.org/
45
+ # No registry-url to allow Trusted Publishing OIDC authentication
46
+ # setup-node automatically uses NODE_AUTH_TOKEN if registry-url is set
47
+
48
+ - name: Upgrade npm for Trusted Publishing support
49
+ run: npm install -g npm@latest
50
+ # Trusted Publishing requires npm 11.5.1+
51
+
52
+ - name: Configure npm registry (for Trusted Publishing)
53
+ run: npm config set registry https://registry.npmjs.org/
46
54
 
47
55
  - name: Fetch the latest code
48
56
  run: git pull origin main # Ensures that the latest version is fetched from the main branch.
49
57
 
58
+ - name: Debug npm configuration
59
+ run: |
60
+ echo "npm version: $(npm --version)"
61
+ echo "Registry: $(npm config get registry)"
62
+ echo "Checking temp .npmrc (created by setup-node):"
63
+ cat $NPM_CONFIG_USERCONFIG 2>/dev/null || echo "No temp .npmrc found"
64
+ echo ""
65
+ echo "Whoami check:"
66
+ npm whoami || echo "Not authenticated"
67
+ echo ""
68
+ echo "NODE_AUTH_TOKEN status:"
69
+ if [ -n "$NODE_AUTH_TOKEN" ]; then
70
+ echo "Token is SET (this should NOT be set for Trusted Publishing)"
71
+ else
72
+ echo "Token is NOT set (good for Trusted Publishing)"
73
+ fi
74
+
50
75
  - name: Publish to npm
51
- run: npm publish --access public
52
- env:
53
- NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
54
-
76
+ run: |
77
+ # Ensure no token is used - Trusted Publishing uses OIDC
78
+ unset NODE_AUTH_TOKEN
79
+ npm config delete //registry.npmjs.org/:_authToken || true
80
+ npm publish --access public
package/package.json CHANGED
@@ -1,6 +1,10 @@
1
1
  {
2
2
  "name": "ins-queue-actions",
3
- "version": "1.2.97",
3
+ "version": "1.2.105",
4
4
  "main": "index.js",
5
- "engineStrict": true
5
+ "engineStrict": true,
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/InstaServiceTech/ins-queue-actions.git"
9
+ }
6
10
  }