Skip to content

Commit

Permalink
fix: bump up the Node.JS to v16
Browse files Browse the repository at this point in the history
also update tsconfig.json to follow the recommendation in the wiki:
https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping#node-16

refs actions/runner#1439
  • Loading branch information
KengoTODA committed Dec 21, 2021
1 parent 35df27c commit e05fcd1
Show file tree
Hide file tree
Showing 9 changed files with 11,358 additions and 452 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ jobs:
with:
# Make sure the release step uses its own credentials.
persist-credentials: false
- name: Use Node.js v12.x
- name: Read .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
id: nvm
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: "${{ steps.nvm.outputs.NVMRC }}"
cache: npm
- name: Build
run: |
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/test-with-tokens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ jobs:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.workflow_run.head_sha }}
- name: Use Node.js v12.x
- name: Read .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
id: nvm
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: "${{ steps.nvm.outputs.NVMRC }}"
cache: npm
- name: Build
run: |
Expand All @@ -36,4 +39,4 @@ jobs:
name: test-with-tokens
sha: ${{ github.event.workflow_run.head_sha }}
conclusion: ${{ job.status }}
details_url : https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
details_url: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12
16
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ inputs:
required: true
description: The slug of target Read the Docs project
runs:
using: "node12"
using: "node16"
main: "dist/index.js"
branding:
icon: "book"
Expand Down
646 changes: 234 additions & 412 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit e05fcd1

Please sign in to comment.