@pnpm/deps.github-actions 1100.1.6 → 1100.1.8
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.
- package/CHANGELOG.md +17 -0
- package/lib/index.js +13 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @pnpm/deps.github-actions
|
|
2
2
|
|
|
3
|
+
## 1100.1.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- `pnpm outdated` and `pnpm update` now follow local actions and reusable workflows referenced with GitHub's self-repository syntax (`uses: $/.github/actions/setup`) when looking for outdated GitHub Actions, the same way they follow `./` references.
|
|
8
|
+
|
|
9
|
+
- Updated dependencies:
|
|
10
|
+
- @pnpm/error@1100.1.4
|
|
11
|
+
- @pnpm/resolving.git-resolver@1100.1.20
|
|
12
|
+
|
|
13
|
+
## 1100.1.7
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies:
|
|
18
|
+
- @pnpm/resolving.git-resolver@1100.1.19
|
|
19
|
+
|
|
3
20
|
## 1100.1.6
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/lib/index.js
CHANGED
|
@@ -176,8 +176,9 @@ async function discoverActions(dir) {
|
|
|
176
176
|
const localReferences = [];
|
|
177
177
|
for (const node of findUsesScalars(document.contents)) {
|
|
178
178
|
const value = node.value;
|
|
179
|
-
|
|
180
|
-
|
|
179
|
+
const localReference = parseLocalReference(value);
|
|
180
|
+
if (localReference != null) {
|
|
181
|
+
localReferences.push(localReference);
|
|
181
182
|
continue;
|
|
182
183
|
}
|
|
183
184
|
const parsed = parseActionReference(value);
|
|
@@ -241,6 +242,16 @@ function findStringScalar(node, key) {
|
|
|
241
242
|
const value = findMapValue(node, key);
|
|
242
243
|
return isScalar(value) && typeof value.value === 'string' ? value : null;
|
|
243
244
|
}
|
|
245
|
+
/**
|
|
246
|
+
* Returns the repository-relative path of a `uses:` value that points into the
|
|
247
|
+
* same repository, either the workspace-relative `./` form or GitHub's
|
|
248
|
+
* self-repository `$/` form. Returns `null` for every other value, such as an
|
|
249
|
+
* `owner/repo@ref` or `docker://` reference, which is left to
|
|
250
|
+
* `parseActionReference`.
|
|
251
|
+
*/
|
|
252
|
+
function parseLocalReference(value) {
|
|
253
|
+
return value.startsWith('./') || value.startsWith('$/') ? value.slice(2) : null;
|
|
254
|
+
}
|
|
244
255
|
async function resolveLocalReference(rootDir, reference) {
|
|
245
256
|
const target = path.resolve(rootDir, reference);
|
|
246
257
|
const candidate = target.endsWith('.yml') || target.endsWith('.yaml')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/deps.github-actions",
|
|
3
|
-
"version": "1100.1.
|
|
3
|
+
"version": "1100.1.8",
|
|
4
4
|
"description": "Discover and update GitHub Actions dependencies",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"!*.map"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@pnpm/error": "1100.1.
|
|
32
|
-
"@pnpm/resolving.git-resolver": "1100.1.
|
|
31
|
+
"@pnpm/error": "1100.1.4",
|
|
32
|
+
"@pnpm/resolving.git-resolver": "1100.1.20",
|
|
33
33
|
"is-subdir": "^2.0.0",
|
|
34
|
-
"p-limit": "^7.3.
|
|
34
|
+
"p-limit": "^7.3.2",
|
|
35
35
|
"semver": "^7.8.5",
|
|
36
36
|
"write-file-atomic": "^7.0.1",
|
|
37
37
|
"yaml": "^2.9.0"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@jest/globals": "30.4.1",
|
|
44
|
-
"@pnpm/deps.github-actions": "1100.1.
|
|
44
|
+
"@pnpm/deps.github-actions": "1100.1.8",
|
|
45
45
|
"@types/semver": "7.8.0",
|
|
46
46
|
"@types/write-file-atomic": "^4.0.3"
|
|
47
47
|
},
|