diff --git a/template.rb b/template.rb index 6175d55..7cbf7e8 100644 --- a/template.rb +++ b/template.rb @@ -233,9 +233,9 @@ create_file 'bin/deploy', BIN_DEPLOY, force: true chmod 'bin/deploy', 0755, verbose: false -get("#{BASE_URL}/build.yml", '.github/workflows/build.yml') -get("#{BASE_URL}/deploy-staging.yml", '.github/workflows/deploy-staging.yml') -get("#{BASE_URL}/deploy-production.yml", '.github/workflows/deploy-production.yml') +# get("#{BASE_URL}/build.yml", '.github/workflows/build.yml') +# get("#{BASE_URL}/deploy-staging.yml", '.github/workflows/deploy-staging.yml') +# get("#{BASE_URL}/deploy-production.yml", '.github/workflows/deploy-production.yml') # bundler config BUNDLER_CI_BUILD_CONFIG = <<~HEREDOC.strip_heredoc @@ -608,6 +608,10 @@ def run get("#{BASE_URL}/.slim-lint.yml", '.slim-lint.yml') + node_version = `node -v`.chomp.sub('v', '') + + create_file '.node-version', node_version + PACKAGE_JSON_FILE = <<~HEREDOC { "name": "#{app_name}", @@ -622,6 +626,9 @@ def run }, "eslintConfig": { "extends": "@infinumrails/eslint-config-js" + }, + "engines": { + "node": "#{node_version}" } } HEREDOC