GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Allow canary releases by dsame · Pull Request #605 · actions/setup-node

Conversation

@dsame

@dsame dsame commented Oct 24, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Description:
https://github.com/actions/runner-images-internal/issues/4457

Related issue:
Add link to the related issue.

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
dmitry-shibanov and others added 15 commits October 13, 2022 14:15
@dmitry-shibanov
add nightly build support
ccb6d05
@dmitry-shibanov
testing: add debug lines
4a77f69
@dmitry-shibanov
testing: add debug line
ab789e9
@dmitry-shibanov
testing: add possible fixes
20838dd
@dmitry-shibanov
testing: add possible fixes
ee9cdf3
@dmitry-shibanov
minor fix
9b82ea3
@dmitry-shibanov
add major support
ccbc0aa
@dmitry-shibanov
fix e2e test
d7c7dfa
@dmitry-shibanov
fixing bugs
a4ae079
@dmitry-shibanov
fix if check
e7c919e
@dmitry-shibanov
fix toolcache
60732b4
@dmitry-shibanov
add debug line
817ef3e
@dmitry-shibanov
fix toolcache
3b39c27
@dmitry-shibanov
add core debug
29be232
@dsame
Merge branch 'v-dmshib/add-nightly-support' of github.com:dmitry-shib…
fa20ef8
…anov/setup-node into v-sedoli/lkgr
@dsame
dsame requested a review from a team October 24, 2022 07:22
brcrista
brcrista reviewed Oct 25, 2022
View reviewed changes
Comment thread src/installer.ts
return version;
}

// TODO - should we just export this from @actions/tool-cache? Lifted directly from there

@brcrista brcrista Oct 25, 2022

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment isn't relevant anymore since we're changing the logic

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
brcrista
brcrista reviewed Oct 25, 2022
View reviewed changes
Comment thread src/installer.ts
Comment on lines +391 to +409
versions = versions.sort((a, b) => {
if (semver.gt(a, b)) {
return 1;
}
return -1;
});

@brcrista brcrista Oct 25, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a compare function you can pass to Array.prototype.sort: https://github.com/npm/node-semver#comparison

Suggested change
versions = versions.sort((a, b) => {
if (semver.gt(a, b)) {
return 1;
}
return -1;
});
versions = versions.sort(semver.compare);

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
brcrista
brcrista reviewed Oct 25, 2022
View reviewed changes
Comment thread src/installer.ts
Comment on lines +438 to +458
const versionsReversed = versions.sort((a, b) => {
if (semver.gt(a, b)) {
return -1;
} else if (semver.lt(a, b)) {
return 1;
}
return 0;
});

@brcrista brcrista Oct 25, 2022

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's also an rcompare function:

Suggested change
const versionsReversed = versions.sort((a, b) => {
if (semver.gt(a, b)) {
return -1;
} else if (semver.lt(a, b)) {
return 1;
}
return 0;
});
const versionsReversed = versions.sort(semver.rcompare);

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
brcrista
brcrista reviewed Oct 25, 2022
View reviewed changes
Comment thread src/installer.ts
versionSpec: string
): string {
let version = '';
let range: string | null | undefined;

@brcrista brcrista Oct 25, 2022

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let range: string | null | undefined;
let range: string | undefined;

doesn't look like it's ever null?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
brcrista
brcrista approved these changes Oct 25, 2022
View reviewed changes

@brcrista brcrista left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor suggestions but looks good

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
marko-zivic-93
marko-zivic-93 approved these changes Oct 26, 2022
View reviewed changes
brcrista
brcrista reviewed Oct 26, 2022
View reviewed changes
Comment thread src/installer.ts
versionSpec: string
): string {
let version = '';
let range: string | null | undefined;

@brcrista brcrista Oct 26, 2022

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let range: string | null | undefined;
let range: string | undefined;

doesn't look like it's ever null?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@brcrista brcrista mentioned this pull request Oct 26, 2022
Add support for nightly and rc versions #611
Merged
2 tasks
@dsame
dsame force-pushed the v-sedoli/lkgr branch 6 times, most recently from 206b7e5 to 8285caf Compare November 2, 2022 20:50
@dsame
dsame force-pushed the v-sedoli/lkgr branch 6 times, most recently from 76c3871 to 21dbe7e Compare November 3, 2022 20:00
@dsame
add canary releases
84e2ff1
@dsame
dsame force-pushed the v-sedoli/lkgr branch from 21dbe7e to 84e2ff1 Compare November 3, 2022 20:14
@dsame

dsame commented Nov 11, 2022

Copy link
Copy Markdown
Contributor Author

The PR to be abandoned for sake of this PR #619

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dmitry-shibanov

dmitry-shibanov commented Jan 10, 2023

Copy link
Copy Markdown
Contributor

I'm going to close the pull request in favour of this: #655

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dmitry-shibanov dmitry-shibanov closed this Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

2 more reviewers
@brcrista brcrista brcrista approved these changes
@marko-zivic-93 marko-zivic-93 marko-zivic-93 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@dsame @dmitry-shibanov @brcrista @marko-zivic-93
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.