Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: actions/node-versions
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 12.22.5-1122930631
Choose a base ref
...
head repository: actions/node-versions
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 12.22.6-1186707475
Choose a head ref
  • 10 commits
  • 3 files changed
  • 3 contributors

Commits on Aug 12, 2021

  1. Update versions-manifest

    459680 committed Aug 12, 2021

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    5edc6df View commit details
  2. Merge pull request #73 from actions/update-versions-manifest-file

    [versions-manifest] Update for release from 08/12/2021
    MaksimZhukov authored Aug 12, 2021
    Copy the full SHA
    947a320 View commit details

Commits on Aug 18, 2021

  1. Update versions-manifest

    459680 committed Aug 18, 2021
    Copy the full SHA
    9405eaa View commit details
  2. Merge pull request #74 from actions/update-versions-manifest-file

    [versions-manifest] Update for release from 08/18/2021
    MaksimZhukov authored Aug 18, 2021
    Copy the full SHA
    e5e3b83 View commit details

Commits on Aug 23, 2021

  1. Move get-node-versions pipeline

    Nikita Bykov committed Aug 23, 2021
    Copy the full SHA
    5a83490 View commit details

Commits on Aug 25, 2021

  1. Copy the full SHA
    6e415f5 View commit details

Commits on Aug 26, 2021

  1. Update helpers

    Nikita Bykov committed Aug 26, 2021
    Copy the full SHA
    5c5f144 View commit details
  2. Merge pull request #75 from nikita-bykov/move-get-node-versions

    Move get-node-versions pipeline from Azure DevOps
    MaksimZhukov authored Aug 26, 2021
    Copy the full SHA
    0287ac9 View commit details
  3. Update versions-manifest

    459680 committed Aug 26, 2021
    Copy the full SHA
    ad4714d View commit details
  4. Merge pull request #76 from actions/update-versions-manifest-file

    [versions-manifest] Update for release from 08/26/2021
    MaksimZhukov authored Aug 26, 2021
    Copy the full SHA
    63fc200 View commit details
Showing with 225 additions and 1 deletion.
  1. +97 −0 .github/workflows/get-node-versions.yml
  2. +1 −1 helpers
  3. +127 −0 versions-manifest.json
97 changes: 97 additions & 0 deletions .github/workflows/get-node-versions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: Get Node versions
on:
schedule:
- cron: '0 3,15 * * *'
workflow_dispatch:

env:
TOOL_NAME: "Node"
defaults:
run:
shell: pwsh

jobs:
find_new_versions:
name: Find new versions
runs-on: ubuntu-latest
outputs:
versions_output: ${{ steps.Get_new_versions.outputs.TOOL_VERSIONS }}
steps:
- uses: actions/checkout@v2
with:
submodules: true

- id: Get_new_versions
name: Get new versions
run: ./helpers/get-new-tool-versions/get-new-tool-versions.ps1 -ToolName ${{ env.TOOL_NAME }}

check_new_versions:
name: Check new versions
runs-on: ubuntu-latest
needs: find_new_versions
env:
TOOL_VERSIONS: ${{needs.find_new_versions.outputs.versions_output}}
steps:
- uses: actions/checkout@v2
with:
submodules: true

- name: Check Versions
if: success() && env.TOOL_VERSIONS == ''
run: |
Write-Host "No new versions were found"
Import-Module "./helpers/github/github-api.psm1"
$gitHubApi = Get-GitHubApi -RepositoryFullName "$env:GITHUB_REPOSITORY" `
-AccessToken "${{ secrets.PERSONAL_TOKEN }}"
$gitHubApi.CancelWorkflow("$env:GITHUB_RUN_ID")
Start-Sleep -Seconds 60
- name: Send Slack notification
run: |
$pipelineUrl = "$env:GITHUB_SERVER_URL/$env:GITHUB_REPOSITORY/actions/runs/$env:GITHUB_RUN_ID"
$message = "The following versions of '${{ env.TOOL_NAME }}' are available to upload: ${{ env.TOOL_VERSIONS }}\nLink to the pipeline: $pipelineUrl"
./helpers/get-new-tool-versions/send-slack-notification.ps1 -Url "${{ secrets.SLACK_CHANNEL_URL }}" `
-ToolName "${{ env.TOOL_NAME }}" `
-ImageUrl "https://nodejs.org/static/images/logo-hexagon-card.png" `
-Text "$message"
trigger_builds:
name: Trigger builds
runs-on: ubuntu-latest
needs: [find_new_versions, check_new_versions]
env:
TOOL_VERSIONS: ${{needs.find_new_versions.outputs.versions_output}}
environment: Get Available Tools Versions - Publishing Approval
steps:
- uses: actions/checkout@v2
with:
submodules: true

- name: Trigger "Build Node packages" workflow
run:
./helpers/github/run-ci-builds.ps1 -RepositoryFullName "$env:GITHUB_REPOSITORY" `
-AccessToken "${{ secrets.PERSONAL_TOKEN }}" `
-WorkflowFileName "build-node-packages.yml" `
-WorkflowDispatchRef "main" `
-ToolVersions "${{ env.TOOL_VERSIONS }}" `
-PublishReleases "true"

check_build:
name: Check build for failures
runs-on: ubuntu-latest
needs: [find_new_versions, check_new_versions, trigger_builds]
if: failure()
steps:
- uses: actions/checkout@v2
with:
submodules: true

- name: Send Slack notification if build fails
run: |
$pipelineUrl = "$env:GITHUB_SERVER_URL/$env:GITHUB_REPOSITORY/actions/runs/$env:GITHUB_RUN_ID"
$message = "The build of the '${{ env.TOOL_NAME }}' detection pipeline failed :progress-error:\nLink to the pipeline: $pipelineUrl"
./helpers/get-new-tool-versions/send-slack-notification.ps1 -Url "${{ secrets.SLACK_CHANNEL_URL }}" `
-ToolName "${{ env.TOOL_NAME }}" `
-Text "$message" `
-ImageUrl "https://nodejs.org/static/images/logo-hexagon-card.png"
127 changes: 127 additions & 0 deletions versions-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,79 @@
[
{
"version": "16.8.0",
"stable": true,
"release_url": "https://github.com/actions/node-versions/releases/tag/16.8.0-1169919626",
"files": [
{
"filename": "node-16.8.0-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/16.8.0-1169919626/node-16.8.0-darwin-x64.tar.gz"
},
{
"filename": "node-16.8.0-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/16.8.0-1169919626/node-16.8.0-linux-x64.tar.gz"
},
{
"filename": "node-16.8.0-win32-x64.7z",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/16.8.0-1169919626/node-16.8.0-win32-x64.7z"
}
]
},
{
"version": "16.7.0",
"stable": true,
"release_url": "https://github.com/actions/node-versions/releases/tag/16.7.0-1142094056",
"files": [
{
"filename": "node-16.7.0-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/16.7.0-1142094056/node-16.7.0-darwin-x64.tar.gz"
},
{
"filename": "node-16.7.0-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/16.7.0-1142094056/node-16.7.0-linux-x64.tar.gz"
},
{
"filename": "node-16.7.0-win32-x64.7z",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/16.7.0-1142094056/node-16.7.0-win32-x64.7z"
}
]
},
{
"version": "16.6.2",
"stable": true,
"release_url": "https://github.com/actions/node-versions/releases/tag/16.6.2-1122930057",
"files": [
{
"filename": "node-16.6.2-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/16.6.2-1122930057/node-16.6.2-darwin-x64.tar.gz"
},
{
"filename": "node-16.6.2-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/16.6.2-1122930057/node-16.6.2-linux-x64.tar.gz"
},
{
"filename": "node-16.6.2-win32-x64.7z",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/16.6.2-1122930057/node-16.6.2-win32-x64.7z"
}
]
},
{
"version": "16.6.1",
"stable": true,
@@ -249,6 +324,32 @@
}
]
},
{
"version": "14.17.5",
"stable": true,
"lts": "Fermium",
"release_url": "https://github.com/actions/node-versions/releases/tag/14.17.5-1122930359",
"files": [
{
"filename": "node-14.17.5-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/14.17.5-1122930359/node-14.17.5-darwin-x64.tar.gz"
},
{
"filename": "node-14.17.5-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/14.17.5-1122930359/node-14.17.5-linux-x64.tar.gz"
},
{
"filename": "node-14.17.5-win32-x64.7z",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/14.17.5-1122930359/node-14.17.5-win32-x64.7z"
}
]
},
{
"version": "14.17.4",
"stable": true,
@@ -1079,6 +1180,32 @@
}
]
},
{
"version": "12.22.5",
"stable": true,
"lts": "Erbium",
"release_url": "https://github.com/actions/node-versions/releases/tag/12.22.5-1122930631",
"files": [
{
"filename": "node-12.22.5-darwin-x64.tar.gz",
"arch": "x64",
"platform": "darwin",
"download_url": "https://github.com/actions/node-versions/releases/download/12.22.5-1122930631/node-12.22.5-darwin-x64.tar.gz"
},
{
"filename": "node-12.22.5-linux-x64.tar.gz",
"arch": "x64",
"platform": "linux",
"download_url": "https://github.com/actions/node-versions/releases/download/12.22.5-1122930631/node-12.22.5-linux-x64.tar.gz"
},
{
"filename": "node-12.22.5-win32-x64.7z",
"arch": "x64",
"platform": "win32",
"download_url": "https://github.com/actions/node-versions/releases/download/12.22.5-1122930631/node-12.22.5-win32-x64.7z"
}
]
},
{
"version": "12.22.4",
"stable": true,