Skip to content

lts/ named aliases not resolving to correct sequence of versions #536

@developher-net

Description

@developher-net

Description:
New named aliases introduced in #481 are not resolving correctly. Using named alias lts/* on hosted GitHub runners resolves to Node v16 instead of the current LTS v18. As a result, each of the named aliases lts/-n are offset incorrectly. (-1 resolves to v14 instead of v16, -2 to v12, etc..)

Action version:
v3.3

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

Repro steps:
Setup GitHub action using aliases for node versions:
https://github.com/amclin/aem-packager/blob/master/.github/workflows/run-tests.yml

jobs:
  build:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: ['lts/*', 'lts/-1', 'lts/-2']
        # See supported Node.js release schedule at https://nodejs.org/en/about/releases/

    steps:
    - uses: actions/checkout@v3
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v3
      with:
        node-version: ${{ matrix.node-version }}

Expected behavior:

  • lts/-2 resolves to Node v14
  • lts/-1 resolves to Node v16
  • lts/* resolves to Node v18

Actual behavior:

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy