From 944975fe63551464ddb9aa97ffaa5f2ef05f3167 Mon Sep 17 00:00:00 2001 From: Frederik Wallner Date: Tue, 12 Mar 2024 20:50:15 +0100 Subject: [PATCH] Use nvm to manage node version --- .github/workflows/ci.yml | 10 ++++++++-- .github/workflows/draft-release.yml | 2 ++ .nvmrc | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 747e2115..0345af35 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' - run: npm install - run: npm run format-check - run: npm test @@ -34,7 +37,10 @@ jobs: swift: "5.6.3" steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' - run: npm install - run: npm run build && npm run pack-source-map - uses: ./ diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index 6559846c..8c98b8a2 100644 --- a/.github/workflows/draft-release.yml +++ b/.github/workflows/draft-release.yml @@ -15,6 +15,8 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' - name: Update Release Draft id: release_draft diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..209e3ef4 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +20