Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand current syntax to support aliases for latest version (current/latest/node) #483

Merged
merged 23 commits into from
May 12, 2022
Merged
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
update e2e
  • Loading branch information
panticmilos committed May 9, 2022
commit dd2d49377f0246d266ff58ad69d72e886230fab7
13 changes: 8 additions & 5 deletions .github/workflows/versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,12 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [current, latest, node]
steps:
- name: Retrieve version before install
- name: Get node version
run: |
version=$(echo $(node --version))
echo "::set-output name=NODE_VERSION::$version"
version = $(curl https://nodejs.org/dist/index.json | jq '.[0] | .version')
id: version
echo "::set-output name=LATEST_NODE_VERSION::$version"
shell: bash
id: version
shell: bash
- uses: actions/checkout@v3
Expand All @@ -166,6 +168,7 @@ jobs:
id: updatedVersion
shell: bash
- name: Compare versions
if: ${{ steps.version.outputs.NODE_VERSION == steps.updatedVersion.outputs.NODE_VERSION_UPDATED}}
if: ${{ steps.version.outputs.LATEST_NODE_VERSION != steps.updatedVersion.outputs.NODE_VERSION_UPDATED}}
run: |
echo "System node version ${{steps.updatedVersion.outputs.NODE_VERSION_UPDATED}} is same after the installation!"
echo "Latest node version failed to download."
exit 1