Skip to content

Commit

Permalink
feat: update to node 16
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Beesley committed Nov 22, 2022
1 parent 8e2951c commit 9fef85f
Show file tree
Hide file tree
Showing 17 changed files with 62,271 additions and 38,977 deletions.
32 changes: 0 additions & 32 deletions .eslintrc.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/auto-rebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
auto-rebase:
name: rebase dependabot PRs
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' || github.event == 'release'
if: github.ref == 'refs/heads/master' || github.event == 'release'
timeout-minutes: 5
steps:
- name: request rebase
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Commitlint
on:
pull_request:
types: [opened, synchronize, edited]
jobs:
lint-commits:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '16.17.0'
- name: install
run: npm i --package-lock=false @commitlint/cli @commitlint/config-conventional conventional-commit-types conventional-changelog-angular
- name: commitlint
run: ./node_modules/.bin/commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD
15 changes: 1 addition & 14 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,7 @@ jobs:
persist-credentials: false
- uses: actions/setup-node@v2
with:
node-version: '14.17'
node-version: '16.17'
- uses: bbeesley/build-test-merge-publish@main
env:
GITHUB_TOKEN: ${{ secrets.GH_PA_TOKEN }}
lint-commits:
runs-on: ubuntu-latest
if: ${{ (github.actor == 'dependabot[bot]' && github.event_name == 'pull_request_target') || (github.ref != 'refs/heads/main' && github.event_name == 'push') }}
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
- name: install
run: npm ci
- name: commitlint
run: ./node_modules/.bin/commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.17.0
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ branding:
icon: box
color: blue
runs:
using: 'node12'
using: 'node16'
main: 'dist/main.cjs'
2 changes: 1 addition & 1 deletion babel.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = function configureBabel(api) {
'@babel/preset-env', // this plugin tells babel to transpile your code for a specific runtime environment, we'll use node
{
targets: {
node: '12.13.0', // this means transpile everything that node 12.13 (the version you get in lambda with node12) doesn't support
node: '16.13.0', // this means transpile everything that node 12.13 (the version you get in lambda with node12) doesn't support
},
modules: 'cjs',
},
Expand Down
Loading

0 comments on commit 9fef85f

Please sign in to comment.