question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

Recommended upgrade path to `node16` for action authors?

See original GitHub issue

Describe the enhancement

(Sorry this is more of a request for guidance; didnā€™t see a better issue category)

If there is no change to the action interface, nor to its code, nor does it target post-Node.js 12 features, is it safe to bump runtime in action.yml to node16 without updating major version, and without breaking Node.js 12 customers?

I guess in other words, does the runner safely fallback to Node.js 12 even if runtime is marked as node16? It would be unfortunate to ask users to update major version (and render a lot of documentation obsolete) when none of the code being executed has changed.

I see for at least some actions (e.g. actions/setup-go, actions/setup-python) the runtime change was matched with a major version update, but not sure if that was solely due to the runtime change.

Code Snippet N/A

Additional information N/A

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
fhammerlcommented, Apr 20, 2022

Hi @hoffa, thanks for taking an active interest in upgrading you actions to node16! Short answer: The major version bump is highly recommended, but it is not a technical requirement for the action to run on node16.

Check the documentation for generic versioning guidelines.

Long answer

While inconvenient in some cases, bumping a major version is recommended, at least from a semantic versioning perspective. Bumping the Node version also inherits any and all of Nodeā€™s breaking changes between v12 and v16. Also, actions/setup-go and actions/setup-python also took this as an opportunity to introduce other breaking changes, specifically, removing deprecated features, as part of the major version bump.

On the other hand, for many actions, the transition between node12 and node16 can be entirely seamless, and ultimately the final versioning decision is in the hands of the action author.

0reactions
Andrey5045commented, Dec 26, 2022

Here is my build.yml What do I have to change here to upgrade node 12 to 16?

name: Build and Deliver

on: workflow_dispatch: inputs: AppVersion: description: ā€˜Version Nameā€™ required: true default: ā€˜1.0ā€™ Solar2DBuild: description: ā€˜Solar2D Build Numberā€™ required: true default: ā€˜2020.3635ā€™ Xcode: description: ā€˜Xcode Versionā€™ required: true default: ā€˜12.3ā€™

env: DEVELOPER_DIR: /Applications/Xcode_${{ github.event.inputs.Xcode }}.app/Contents/Developer # this forces Xcode version APP_VERSION: ${{ github.event.inputs.AppVersion }} S2D_BUILD_NAME: ${{ github.event.inputs.Solar2DBuild }}

jobs: build: runs-on: macos-10.15 steps: - uses: actions/checkout@v2 - name: Build and Deliver run: Util/build.sh env: CERT_PASSWORD: ${{ secrets.CertPassword }} APPLE_USERNAME: ${{ secrets.AppleUser }} APPLE_PASSWORD: ${{ secrets.ApplePassword }} APPLE_TEAM_ID: ${{ secrets.AppleTeamId }}

Read more comments on GitHub >

github_iconTop Results From Across the Web

Updating plugin editor to new node version - Bubble Forum
We've released the upgrade path for plugin authors! You can manually upgrade using the ā€œUpgrade to node 14ā€ button on the Settings page...
Read more >
How to Easily Update Node.js to the Latest Version
In this article, you will learn how to quickly and easily update Node. js on different operating systemsā€”macOS, Linux, and Windows.
Read more >
Node v16.13.1 (LTS)
This release contains a c-ares update to fix a regression introduced in Node.js v16.6.2 resolving CNAME records containing underscoresĀ ...
Read more >
How to Build Your First JavaScript GitHub Action
That's why I'm going to show you how to create your first custom JavaScript action in just few steps. Let's dig in.
Read more >
Creating Your Own GitHub Action With TypeScript
Below is a step-by-step process for creating your own GitHub Action using Typescript! Let's begin by setting up our project!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found