Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
ff0573d
Update versions-manifest (#195)
github-actions[bot] Jan 9, 2025
708c79f
Update versions-manifest (#196)
github-actions[bot] Jan 22, 2025
759e713
Update versions-manifest (#197)
github-actions[bot] Feb 11, 2025
6f7e07c
Update versions-manifest (#198)
github-actions[bot] Feb 12, 2025
b8e2e09
Update versions-manifest (#199)
github-actions[bot] Feb 21, 2025
70176e8
Update versions-manifest (#200)
github-actions[bot] Mar 14, 2025
48b638b
Update versions-manifest (#201)
github-actions[bot] Mar 28, 2025
c5d5eb3
Update versions-manifest (#202)
github-actions[bot] Apr 23, 2025
89d8112
Update versions-manifest (#203)
github-actions[bot] Apr 23, 2025
3de2515
Update versions-manifest (#204)
github-actions[bot] May 7, 2025
e25da9d
Update versions-manifest (#205)
github-actions[bot] May 12, 2025
6fda093
Update versions-manifest (#206)
github-actions[bot] May 15, 2025
8c7740e
Update versions-manifest (#207)
github-actions[bot] May 26, 2025
4983657
Update versions-manifest (#208)
github-actions[bot] Jun 10, 2025
ef431e4
Update versions-manifest (#209)
github-actions[bot] Jun 24, 2025
7bff9a2
Update versions-manifest (#210)
github-actions[bot] Jun 25, 2025
2f48f5f
Add new logs path related to runner migration (#211)
HarithaVattikuti Jul 11, 2025
48d06ac
Update versions-manifest (#212)
github-actions[bot] Jul 11, 2025
447f233
Update versions-manifest (#213)
github-actions[bot] Jul 16, 2025
8bc7882
Update versions-manifest (#214)
github-actions[bot] Aug 4, 2025
05932b3
Change schedule (#215)
HarithaVattikuti Aug 5, 2025
414aa4b
Update versions-manifest (#216)
github-actions[bot] Aug 15, 2025
6c1dcef
Update versions-manifest (#217)
github-actions[bot] Aug 28, 2025
82b9d6e
Update versions-manifest (#218)
github-actions[bot] Aug 29, 2025
018c973
Update versions-manifest (#219)
github-actions[bot] Sep 4, 2025
b32305d
Update versions-manifest (#220)
github-actions[bot] Sep 11, 2025
fcfdeb3
Update versions-manifest (#221)
github-actions[bot] Sep 25, 2025
a2eca09
Update versions-manifest (#222)
github-actions[bot] Sep 26, 2025
64801c3
Update versions-manifest (#224)
github-actions[bot] Oct 13, 2025
b9b8a06
Update versions-manifest (#225)
github-actions[bot] Oct 21, 2025
7cc031e
Update versions-manifest (#226)
github-actions[bot] Oct 29, 2025
318aa75
Update versions-manifest (#227)
github-actions[bot] Nov 12, 2025
acb7169
Create npm-publish-github-packages.yml
Joker01-tech Nov 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/get-node-versions.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Get Node versions
on:
schedule:
- cron: '0 3,15 * * *'
- cron: '0 0,12 * * *'
workflow_dispatch:

jobs:
Expand All @@ -10,4 +10,4 @@ jobs:
with:
tool-name: "Node"
image-url: "https://nodejs.org/static/images/logo-hexagon-card.png"
secrets: inherit
secrets: inherit
36 changes: 36 additions & 0 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm test

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
31 changes: 24 additions & 7 deletions tests/Node.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,30 @@ Describe "Node.js" {
function Get-UseNodeLogs {
# GitHub Windows images don't have `HOME` variable
$homeDir = $env:HOME ?? $env:HOMEDRIVE
$logsFolderPath = Join-Path -Path $homeDir -ChildPath "runners/*/_diag/pages" -Resolve

$useNodeLogFile = Get-ChildItem -Path $logsFolderPath | Where-Object {
$logContent = Get-Content $_.Fullname -Raw
return $logContent -match "setup-node@v"
} | Select-Object -First 1
return $useNodeLogFile.Fullname

$possiblePaths = @(
Join-Path -Path $homeDir -ChildPath "actions-runner/cached/_diag/pages"
Join-Path -Path $homeDir -ChildPath "runners/*/_diag/pages"
)

$logsFolderPath = $possiblePaths | Where-Object { Test-Path $_ } | Select-Object -First 1
$resolvedPath = Resolve-Path -Path $logsFolderPath -ErrorAction SilentlyContinue

if ($resolvedPath -and -not [string]::IsNullOrEmpty($resolvedPath.Path) -and (Test-Path $resolvedPath.Path)) {
$useNodeLogFile = Get-ChildItem -Path $resolvedPath | Where-Object {
$logContent = Get-Content $_.Fullname -Raw
return $logContent -match "setup-node@v"
} | Select-Object -First 1

# Return the file name if a match is found
if ($useNodeLogFile) {
return $useNodeLogFile.FullName
} else {
Write-Error "No matching log file found in the specified path: $($resolvedPath.Path)"
}
} else {
Write-Error "The provided logs folder path is null, empty, or does not exist: $logsFolderPath"
}
}
}

Expand Down
Loading