@contrail/flexplm 1.3.0-alpha.7cd23d9 → 1.3.0-alpha.8c0ba92

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.
@@ -50,6 +50,24 @@ jobs:
50
50
  - name: Install and build
51
51
  run: npm ci && npm run build
52
52
 
53
+ - name: Verify no private dependencies
54
+ run: |
55
+ node -e "
56
+ const deps = require('./package.json').dependencies || {};
57
+ const { execSync } = require('child_process');
58
+ let failed = false;
59
+ for (const pkg of Object.keys(deps)) {
60
+ try {
61
+ execSync('npm view ' + pkg, { stdio: 'pipe' });
62
+ } catch {
63
+ console.error('::error::Dependency ' + pkg + ' is not publicly accessible on npm');
64
+ failed = true;
65
+ }
66
+ }
67
+ if (failed) process.exit(1);
68
+ console.log('All ' + Object.keys(deps).length + ' dependencies are public.');
69
+ "
70
+
53
71
  - name: Publish alpha
54
72
  id: publish
55
73
  run: |
@@ -88,31 +106,26 @@ jobs:
88
106
  - name: Install and build
89
107
  run: npm ci && npm run build
90
108
 
109
+ - name: Verify no private dependencies
110
+ run: |
111
+ node -e "
112
+ const deps = require('./package.json').dependencies || {};
113
+ const { execSync } = require('child_process');
114
+ let failed = false;
115
+ for (const pkg of Object.keys(deps)) {
116
+ try {
117
+ execSync('npm view ' + pkg, { stdio: 'pipe' });
118
+ } catch {
119
+ console.error('::error::Dependency ' + pkg + ' is not publicly accessible on npm');
120
+ failed = true;
121
+ }
122
+ }
123
+ if (failed) process.exit(1);
124
+ console.log('All ' + Object.keys(deps).length + ' dependencies are public.');
125
+ "
126
+
91
127
  - name: Publish release
92
128
  id: publish
93
129
  run: |
94
- npm publish --provenance --access public
130
+ npm publish
95
131
  echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
96
-
97
- verify-install:
98
- name: Verify public install
99
- needs: [publish-alpha, publish-release]
100
- if: always() && (needs.publish-alpha.outputs.version || needs.publish-release.outputs.version)
101
- runs-on: ubuntu-latest
102
- steps:
103
- - name: Install without auth
104
- run: |
105
- VERSION="${{ needs.publish-alpha.outputs.version || needs.publish-release.outputs.version }}"
106
- echo "Verifying @contrail/flexplm@${VERSION} can be installed without auth..."
107
- mkdir /tmp/install-test && cd /tmp/install-test
108
- npm init -y > /dev/null
109
- for attempt in 1 2 3; do
110
- if npm install @contrail/flexplm@${VERSION} --no-save 2>/dev/null; then
111
- echo "Install verified successfully."
112
- exit 0
113
- fi
114
- echo "Attempt ${attempt} failed, waiting 10s for registry propagation..."
115
- sleep 10
116
- done
117
- echo "::error::Failed to install @contrail/flexplm@${VERSION} after 3 attempts"
118
- exit 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/flexplm",
3
- "version": "1.3.0-alpha.7cd23d9",
3
+ "version": "1.3.0-alpha.8c0ba92",
4
4
  "description": "Library used for integration with flexplm.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",