Skip to content

Commit

Permalink
Change to Node.js 16 or later (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
sushichop authored Feb 2, 2023
1 parent e565d9d commit 84a07d2
Show file tree
Hide file tree
Showing 6 changed files with 829 additions and 2,910 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18]
node: [16, 18]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/danger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
danger-for-internal:
name: Danger for internal - Node.js 18
name: Danger for internal - Node.js 16
if: |
github.event_name == 'pull_request'
&& github.event.pull_request.head.repo.full_name == github.repository
Expand All @@ -22,14 +22,14 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 16
- name: Danger JS
run: npx danger ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

danger-for-external:
name: Danger for external - Node.js 18
name: Danger for external - Node.js 16
if: |
github.event_name == 'issue_comment' && github.event.action == 'created'
&& github.event.issue.pull_request != null
Expand All @@ -52,7 +52,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 16
- name: Danger JS
run: npx danger ci
env:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ on
- created
jobs:
danger-for-external:
name: Danger for external - Node.js 18
name: Danger for external - Node.js 16
if: |
github.event_name == 'issue_comment' && github.event.action == 'created'
&& github.event.issue.pull_request != null
Expand All @@ -67,7 +67,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 16
- name: Danger JS
run: npx danger ci
env:
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ outputs:
permitted:
description: 'Whether a user is permitted or not.'
runs:
using: 'node18'
using: 'node16'
main: 'dist/index.js'
branding:
color: 'purple'
Expand Down
Loading

0 comments on commit 84a07d2

Please sign in to comment.