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

Specify a node version in netlify.toml #20963

Merged
merged 1 commit into from
May 14, 2020

Conversation

zacharysarah
Copy link
Contributor

@zacharysarah zacharysarah commented May 13, 2020

This PR attempts to address the Node version error we see when trying to build a preview for #20874.

I'm taking this approach based on this conversation in Netlify docs, with formatting from npm docs.

This is my first time adding an engines: block, so who knows if I'm doing it right. 🤷

UPDATE: Netlify ignored the version set in package.json, so I specified a NODE_VERSION in netlify.toml instead, which works fine, but does highlight a whole bunch of build-related errors that show we don't really know where our environments are specified.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 13, 2020
@k8s-ci-robot k8s-ci-robot added the sig/docs Categorizes an issue or PR as relevant to SIG Docs. label May 13, 2020
@zacharysarah zacharysarah force-pushed the specify-node-version branch 3 times, most recently from 09de064 to 7263d05 Compare May 14, 2020 00:01
@netlify
Copy link

netlify bot commented May 14, 2020

Deploy preview for kubernetes-io-master-staging ready!

Built with commit 09de064

https://deploy-preview-20963--kubernetes-io-master-staging.netlify.app

@netlify
Copy link

netlify bot commented May 14, 2020

Deploy preview for kubernetes-io-master-staging ready!

Built with commit d656fd1

https://deploy-preview-20963--kubernetes-io-master-staging.netlify.app

@zacharysarah zacharysarah force-pushed the specify-node-version branch 5 times, most recently from 88de68e to bc53c4c Compare May 14, 2020 00:35
@zacharysarah zacharysarah changed the title Specify a node version in package.json Specify a node version in netlify.toml May 14, 2020
@zacharysarah zacharysarah force-pushed the specify-node-version branch from bc53c4c to d656fd1 Compare May 14, 2020 00:42
@celestehorgan
Copy link
Contributor

/lgtm (for what it's worth)

@jimangel
Copy link
Member

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jimangel

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels May 14, 2020
@k8s-ci-robot k8s-ci-robot merged commit 73335b0 into kubernetes:master May 14, 2020
@zacharysarah zacharysarah deleted the specify-node-version branch May 14, 2020 02:43
@@ -8,6 +8,7 @@ command = "make non-production-build"

[build.environment]
HUGO_VERSION = "0.70.0"
NODE_VERSION = "10.20.0"
Copy link
Member

Choose a reason for hiding this comment

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

@zacharysarah why not use the latest LTS version (== 12.16.3) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants