@contrail/flexplm 1.3.0-alpha.7cd23d9 → 1.3.0-alpha.ccc03be

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.
@@ -30,8 +30,33 @@ jobs:
30
30
  echo "Version ${VERSION} is available."
31
31
  fi
32
32
 
33
+ check-dependencies:
34
+ name: Verify no private dependencies
35
+ runs-on: ubuntu-latest
36
+ steps:
37
+ - uses: actions/checkout@v4
38
+
39
+ - name: Verify no private dependencies
40
+ run: |
41
+ node -e "
42
+ const deps = require('./package.json').dependencies || {};
43
+ const { execSync } = require('child_process');
44
+ let failed = false;
45
+ for (const pkg of Object.keys(deps)) {
46
+ try {
47
+ execSync('npm view ' + pkg, { stdio: 'pipe' });
48
+ } catch {
49
+ console.error('::error::Dependency ' + pkg + ' is not publicly accessible on npm');
50
+ failed = true;
51
+ }
52
+ }
53
+ if (failed) process.exit(1);
54
+ console.log('All ' + Object.keys(deps).length + ' dependencies are public.');
55
+ "
56
+
33
57
  publish-alpha:
34
58
  name: Publish alpha
59
+ needs: check-dependencies
35
60
  if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
36
61
  runs-on: ubuntu-latest
37
62
  permissions:
@@ -70,6 +95,7 @@ jobs:
70
95
 
71
96
  publish-release:
72
97
  name: Publish release
98
+ needs: check-dependencies
73
99
  if: github.event_name == 'push'
74
100
  runs-on: ubuntu-latest
75
101
  permissions:
@@ -91,28 +117,5 @@ jobs:
91
117
  - name: Publish release
92
118
  id: publish
93
119
  run: |
94
- npm publish --provenance --access public
120
+ npm publish
95
121
  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.ccc03be",
4
4
  "description": "Library used for integration with flexplm.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",