From 09ed165ea75ca23aa985a8691258d630bf3a924d Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Mon, 12 Feb 2024 16:34:12 -0500 Subject: [PATCH] use nvmrc in all Node GH Actions Signed-off-by: Anton Gilgur --- .github/workflows/build-docs.yml | 2 +- .github/workflows/build-v1.yml | 2 +- .github/workflows/npm-publish-v1.yml | 2 +- .github/workflows/npm-publish.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index c85c9a45..cec094de 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -10,6 +10,6 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 14.15 + node-version-file: .nvmrc - run: yarn install - run: yarn build-v2 diff --git a/.github/workflows/build-v1.yml b/.github/workflows/build-v1.yml index 25a392fe..f00145d7 100644 --- a/.github/workflows/build-v1.yml +++ b/.github/workflows/build-v1.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 14.15 + node-version-file: .nvmrc - run: yarn install - run: yarn build - run: yarn lint diff --git a/.github/workflows/npm-publish-v1.yml b/.github/workflows/npm-publish-v1.yml index 3bd426ec..4047cc13 100644 --- a/.github/workflows/npm-publish-v1.yml +++ b/.github/workflows/npm-publish-v1.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 14.15 + node-version-file: .nvmrc - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index c12561ce..fc8e470e 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -16,7 +16,7 @@ jobs: ref: ${{ github.event.inputs.tag }} - uses: actions/setup-node@v4 with: - node-version: 14.15 + node-version-file: .nvmrc - run: cd v2 && npm publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}