@contrail/flexplm 1.3.0-alpha.8c0ba92 → 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,26 +30,12 @@ jobs:
30
30
  echo "Version ${VERSION} is available."
31
31
  fi
32
32
 
33
- publish-alpha:
34
- name: Publish alpha
35
- if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
33
+ check-dependencies:
34
+ name: Verify no private dependencies
36
35
  runs-on: ubuntu-latest
37
- permissions:
38
- id-token: write
39
- contents: read
40
- outputs:
41
- version: ${{ steps.publish.outputs.version }}
42
36
  steps:
43
37
  - uses: actions/checkout@v4
44
38
 
45
- - uses: actions/setup-node@v4
46
- with:
47
- node-version: '24'
48
- registry-url: 'https://registry.npmjs.org'
49
-
50
- - name: Install and build
51
- run: npm ci && npm run build
52
-
53
39
  - name: Verify no private dependencies
54
40
  run: |
55
41
  node -e "
@@ -68,6 +54,27 @@ jobs:
68
54
  console.log('All ' + Object.keys(deps).length + ' dependencies are public.');
69
55
  "
70
56
 
57
+ publish-alpha:
58
+ name: Publish alpha
59
+ needs: check-dependencies
60
+ if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
61
+ runs-on: ubuntu-latest
62
+ permissions:
63
+ id-token: write
64
+ contents: read
65
+ outputs:
66
+ version: ${{ steps.publish.outputs.version }}
67
+ steps:
68
+ - uses: actions/checkout@v4
69
+
70
+ - uses: actions/setup-node@v4
71
+ with:
72
+ node-version: '24'
73
+ registry-url: 'https://registry.npmjs.org'
74
+
75
+ - name: Install and build
76
+ run: npm ci && npm run build
77
+
71
78
  - name: Publish alpha
72
79
  id: publish
73
80
  run: |
@@ -88,6 +95,7 @@ jobs:
88
95
 
89
96
  publish-release:
90
97
  name: Publish release
98
+ needs: check-dependencies
91
99
  if: github.event_name == 'push'
92
100
  runs-on: ubuntu-latest
93
101
  permissions:
@@ -106,24 +114,6 @@ jobs:
106
114
  - name: Install and build
107
115
  run: npm ci && npm run build
108
116
 
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
-
127
117
  - name: Publish release
128
118
  id: publish
129
119
  run: |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/flexplm",
3
- "version": "1.3.0-alpha.8c0ba92",
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",