From dcb3ad661cff7d2a8a34149f1e65707e476a86dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Mon, 29 Aug 2022 14:20:33 +0200 Subject: [PATCH] chore(setup): node version setting up on workflows --- .github/workflows/api-gateway.release.yml | 10 ++++++++++ .github/workflows/auth.release.yml | 10 ++++++++++ .github/workflows/event-store.release.yml | 10 ++++++++++ .github/workflows/files.release.yml | 10 ++++++++++ .github/workflows/pr.yml | 5 +++++ .github/workflows/scheduler.release.yml | 10 ++++++++++ .github/workflows/snjs.upgrade.event.yml | 6 ++++-- .github/workflows/syncing-server.release.yml | 10 ++++++++++ 8 files changed, 69 insertions(+), 2 deletions(-) diff --git a/.github/workflows/api-gateway.release.yml b/.github/workflows/api-gateway.release.yml index e782b483a..9788c1785 100644 --- a/.github/workflows/api-gateway.release.yml +++ b/.github/workflows/api-gateway.release.yml @@ -60,6 +60,11 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Set up Node + uses: actions/setup-node@v3 + with: + registry-url: 'https://registry.npmjs.org' + node-version-file: '.nvmrc' - name: Build locally run: yarn build - name: Configure AWS credentials @@ -90,6 +95,11 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Set up Node + uses: actions/setup-node@v3 + with: + registry-url: 'https://registry.npmjs.org' + node-version-file: '.nvmrc' - name: Build locally run: yarn build - name: Login to Docker Hub diff --git a/.github/workflows/auth.release.yml b/.github/workflows/auth.release.yml index 21308a4ba..d573eec7a 100644 --- a/.github/workflows/auth.release.yml +++ b/.github/workflows/auth.release.yml @@ -63,6 +63,11 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Set up Node + uses: actions/setup-node@v3 + with: + registry-url: 'https://registry.npmjs.org' + node-version-file: '.nvmrc' - name: Build locally run: yarn build - name: Configure AWS credentials @@ -93,6 +98,11 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Set up Node + uses: actions/setup-node@v3 + with: + registry-url: 'https://registry.npmjs.org' + node-version-file: '.nvmrc' - name: Build locally run: yarn build - name: Login to Docker Hub diff --git a/.github/workflows/event-store.release.yml b/.github/workflows/event-store.release.yml index 49987b5c9..07dfb09cc 100644 --- a/.github/workflows/event-store.release.yml +++ b/.github/workflows/event-store.release.yml @@ -32,6 +32,11 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Set up Node + uses: actions/setup-node@v3 + with: + registry-url: 'https://registry.npmjs.org' + node-version-file: '.nvmrc' - name: Build locally run: yarn build - name: Configure AWS credentials @@ -62,6 +67,11 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Set up Node + uses: actions/setup-node@v3 + with: + registry-url: 'https://registry.npmjs.org' + node-version-file: '.nvmrc' - name: Build locally run: yarn build - name: Login to Docker Hub diff --git a/.github/workflows/files.release.yml b/.github/workflows/files.release.yml index 80a142d5b..8eaf499eb 100644 --- a/.github/workflows/files.release.yml +++ b/.github/workflows/files.release.yml @@ -63,6 +63,11 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Set up Node + uses: actions/setup-node@v3 + with: + registry-url: 'https://registry.npmjs.org' + node-version-file: '.nvmrc' - name: Build locally run: yarn build - name: Configure AWS credentials @@ -93,6 +98,11 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Set up Node + uses: actions/setup-node@v3 + with: + registry-url: 'https://registry.npmjs.org' + node-version-file: '.nvmrc' - name: Build locally run: yarn build - name: Login to Docker Hub diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 9bff6262e..238ec6cd3 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -11,6 +11,11 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 + - name: Set up Node + uses: actions/setup-node@v3 + with: + registry-url: 'https://registry.npmjs.org' + node-version-file: '.nvmrc' - name: ESLint run: yarn lint - name: Build diff --git a/.github/workflows/scheduler.release.yml b/.github/workflows/scheduler.release.yml index 87dc2e7fa..4a45b5d98 100644 --- a/.github/workflows/scheduler.release.yml +++ b/.github/workflows/scheduler.release.yml @@ -32,6 +32,11 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Set up Node + uses: actions/setup-node@v3 + with: + registry-url: 'https://registry.npmjs.org' + node-version-file: '.nvmrc' - name: Build locally run: yarn build - name: Configure AWS credentials @@ -62,6 +67,11 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Set up Node + uses: actions/setup-node@v3 + with: + registry-url: 'https://registry.npmjs.org' + node-version-file: '.nvmrc' - name: Build locally run: yarn build - name: Login to Docker Hub diff --git a/.github/workflows/snjs.upgrade.event.yml b/.github/workflows/snjs.upgrade.event.yml index ee41a8e38..53f0c9c77 100644 --- a/.github/workflows/snjs.upgrade.event.yml +++ b/.github/workflows/snjs.upgrade.event.yml @@ -14,9 +14,11 @@ jobs: with: ref: main token: ${{ secrets.CI_PAT_TOKEN }} - - uses: actions/setup-node@v3 + - name: Set up Node + uses: actions/setup-node@v3 with: registry-url: 'https://registry.npmjs.org' + node-version-file: '.nvmrc' - name: Setup git config run: | git config --global user.name "standardci" @@ -43,4 +45,4 @@ jobs: commit-message: "${{ 'chore(deps): upgrade snjs' }}" delete-branch: true committer: standardci - author: standardci \ No newline at end of file + author: standardci diff --git a/.github/workflows/syncing-server.release.yml b/.github/workflows/syncing-server.release.yml index 2d5e42941..32aab1115 100644 --- a/.github/workflows/syncing-server.release.yml +++ b/.github/workflows/syncing-server.release.yml @@ -63,6 +63,11 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Set up Node + uses: actions/setup-node@v3 + with: + registry-url: 'https://registry.npmjs.org' + node-version-file: '.nvmrc' - name: Build locally run: yarn build - name: Configure AWS credentials @@ -93,6 +98,11 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Set up Node + uses: actions/setup-node@v3 + with: + registry-url: 'https://registry.npmjs.org' + node-version-file: '.nvmrc' - name: Build locally run: yarn build - name: Login to Docker Hub