Skip to content
This repository was archived by the owner on Mar 30, 2022. It is now read-only.

Commit

Permalink
fix(build): update node from 14 to 16 [PLAT-1082] (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
prescottprue authored Feb 10, 2022
1 parent 8db0e6b commit 17cc47f
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 18 deletions.
9 changes: 8 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ updates:
directory: "/"
schedule:
interval: "daily"
time: '09:00'
timezone: 'America/Denver'
assignees:
- "reside-eng/platform"
reviewers:
Expand All @@ -14,14 +16,19 @@ updates:
prefix: fix
prefix-development: chore
include: scope
ignore:
# Locked to match current Node version 16
- dependency-name: '@types/node'
update-types: ['version-update:semver-major']
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
time: '09:00'
timezone: 'America/Denver'
assignees:
- "reside-eng/platform"
reviewers:
- "reside-eng/platform"
commit-message:
prefix: chore
include: scope
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:
group: publish

env:
NODE_VERSION: 14.x
NODE_VERSION: 16.x

jobs:
publish:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

env:
NODE_VERSION: 14.x
NODE_VERSION: 16.x

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Verify
on: [pull_request]

env:
NODE_VERSION: 14.x
NODE_VERSION: 16.x

jobs:
build:
Expand Down
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
[![NPM version][npm-image]][npm-url]
[![Build Status][build-status-image]][build-status-url]
[![Code Coverage][coverage-image]][coverage-url]
[![License][license-image]][license-url]
[![semantic-release][semantic-release-icon]][semantic-release-url]
[![Code Style][code-style-image]][code-style-url]
Expand All @@ -18,22 +17,22 @@ name: Verify

on: [pull_request]

env:
NODE_VERSION: 16.x

jobs:
build:
name: build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
if: github.actor != 'dependabot[bot]'
steps:
- name: Checkout Code
uses: actions/[email protected]

- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
node-version: ${{ env.NODE_VERSION }}
cache: "yarn"

- name: Install dependencies
Expand All @@ -46,7 +45,7 @@ jobs:
run: yarn test --coverage --coverageReporters="json-summary"

- name: Report Coverage
uses: reside-eng/code-coverage-action@v1
uses: reside-eng/code-coverage-action@v1.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
```
Expand All @@ -55,8 +54,6 @@ jobs:
[npm-url]: https://npmjs.org/package/@side/code-coverage-action
[build-status-image]: https://img.shields.io/github/workflow/status/reside-eng/code-coverage-action/Publish?style=flat-square
[build-status-url]: https://github.com/reside-eng/code-coverage-action/actions
[coverage-image]: https://img.shields.io/codecov/c/github/reside-eng/code-coverage-action.svg?style=flat-square
[coverage-url]: https://codecov.io/gh/reside-eng/code-coverage-action
[license-image]: https://img.shields.io/npm/l/@side/code-coverage-action.svg?style=flat-square
[license-url]: https://github.com/reside-eng/code-coverage-action/blob/main/LICENSE
[code-style-image]: https://img.shields.io/badge/code%20style-airbnb-blue.svg?style=flat-square
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ inputs:
required: false
description: 'Path for output json file'
runs:
using: 'node12'
using: 'node16'
main: 'dist/index.js'
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"main": "dist/index.js",
"engines": {
"node": ">=14"
"node": ">=16"
},
"scripts": {
"prepare": "husky install",
Expand All @@ -31,7 +31,7 @@
"@side/commitlint-config": "^0.1.6",
"@side/eslint-config-base": "^0.12.0",
"@side/eslint-config-jest": "^0.3.4",
"@tsconfig/node14": "1.0.1",
"@tsconfig/node16": "^1.0.2",
"@types/jest": "^27.0.1",
"@types/js-yaml": "^4.0.3",
"@types/node": "^16.9.4",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@tsconfig/node14/tsconfig.json",
"extends": "@tsconfig/node16/tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@
resolved "https://registry.yarnpkg.com/@tsconfig/node12/-/node12-1.0.9.tgz#62c1f6dee2ebd9aead80dc3afa56810e58e1a04c"
integrity sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==

"@tsconfig/node14@1.0.1", "@tsconfig/node14@^1.0.0":
"@tsconfig/node14@^1.0.0":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@tsconfig/node14/-/node14-1.0.1.tgz#95f2d167ffb9b8d2068b0b235302fafd4df711f2"
integrity sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==
Expand Down

0 comments on commit 17cc47f

Please sign in to comment.