diff --git a/.github/workflows/deployment-production.yml b/.github/workflows/deployment-production.yml index 13bd979..b889ae8 100644 --- a/.github/workflows/deployment-production.yml +++ b/.github/workflows/deployment-production.yml @@ -15,23 +15,13 @@ jobs: NODE_OPTIONS: --unhandled-rejections=strict steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - name: Read .nvmrc - run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" - id: nvm - - - name: Use Node.js (.nvmrc) - uses: actions/setup-node@v2 - with: - node-version: ${{ steps.nvm.outputs.NVMRC }} - - - uses: actions/cache@v2 + - name: Use Node.js + uses: actions/setup-node@v4 with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + node-version-file: .nvmrc + cache: npm - name: Install Dependencies run: npm ci @@ -48,23 +38,13 @@ jobs: NODE_OPTIONS: --unhandled-rejections=strict steps: - - uses: actions/checkout@v2 - - - name: Read .nvmrc - run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" - id: nvm - - - name: Use Node.js (.nvmrc) - uses: actions/setup-node@v2 - with: - node-version: ${{ steps.nvm.outputs.NVMRC }} + - uses: actions/checkout@v4 - - uses: actions/cache@v2 + - name: Use Node.js + uses: actions/setup-node@v4 with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + node-version-file: .nvmrc + cache: npm - name: Install Dependencies run: npm ci diff --git a/.github/workflows/deployment-staging.yml b/.github/workflows/deployment-staging.yml index fd6fa35..b6de991 100644 --- a/.github/workflows/deployment-staging.yml +++ b/.github/workflows/deployment-staging.yml @@ -15,23 +15,13 @@ jobs: NODE_OPTIONS: --unhandled-rejections=strict steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - name: Read .nvmrc - run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" - id: nvm - - - name: Use Node.js (.nvmrc) - uses: actions/setup-node@v2 - with: - node-version: ${{ steps.nvm.outputs.NVMRC }} - - - uses: actions/cache@v2 + - name: Use Node.js + uses: actions/setup-node@v4 with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + node-version-file: .nvmrc + cache: npm - name: Install Dependencies run: npm ci @@ -48,23 +38,13 @@ jobs: NODE_OPTIONS: --unhandled-rejections=strict steps: - - uses: actions/checkout@v2 - - - name: Read .nvmrc - run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" - id: nvm - - - name: Use Node.js (.nvmrc) - uses: actions/setup-node@v2 - with: - node-version: ${{ steps.nvm.outputs.NVMRC }} + - uses: actions/checkout@v4 - - uses: actions/cache@v2 + - name: Use Node.js + uses: actions/setup-node@v4 with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + node-version-file: .nvmrc + cache: npm - name: Install Dependencies run: npm ci diff --git a/.github/workflows/test-workflow.yml b/.github/workflows/test-workflow.yml index 18e0f6e..9ac04cf 100644 --- a/.github/workflows/test-workflow.yml +++ b/.github/workflows/test-workflow.yml @@ -16,23 +16,13 @@ jobs: NODE_OPTIONS: --unhandled-rejections=strict steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - name: Read .nvmrc - run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" - id: nvm - - - name: Use Node.js (.nvmrc) - uses: actions/setup-node@v2 - with: - node-version: ${{ steps.nvm.outputs.NVMRC }} - - - uses: actions/cache@v2 + - name: Use Node.js + uses: actions/setup-node@v4 with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + node-version-file: .nvmrc + cache: npm - name: Install Dependencies run: npm ci