diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index ec50abe08..7cf0e352c 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -21,9 +21,9 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Use Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: '18' + node-version-file: '.nvmrc' - name: Build shell: bash run: | @@ -43,9 +43,9 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Use Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: '18' + node-version-file: '.nvmrc' - name: Build shell: bash run: | diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index eecd1bd62..2432adf8f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -22,7 +22,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: '18' + node-version-file: '.nvmrc' - name: Build API docs run: | npm ci diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 61d6e4d2f..8a5393628 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,9 +16,9 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Use Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: '18.x' + node-version-file: '.nvmrc' registry-url: 'https://registry.npmjs.org' - name: Build shell: bash diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 000000000..3c032078a --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +18