From eab2cbd7c5594c737153c1ad6a2bfa01c7c9363d Mon Sep 17 00:00:00 2001 From: dennis-c <1841343+dennis-c@users.noreply.github.com> Date: Fri, 16 Aug 2024 10:51:28 +0200 Subject: [PATCH] Run GitHub Actions using Node 20 --- .github/workflows/ci.yml | 86 ++++++++++++++++++++-------------------- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0de77bf..329d713 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,62 +1,62 @@ name: Continuous Integration on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - release: - types: [ created ] + push: + branches: [ master ] + pull_request: + branches: [ master ] + release: + types: [ created ] jobs: - build: + build: - runs-on: ubuntu-latest + runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 + steps: + - name: Checkout code + uses: actions/checkout@v4 - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: 16 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 20 - - name: Install dependencies - run: npm ci + - name: Install dependencies + run: npm install - - name: Run test suite - run: npm run test + - name: Run test suite + run: npm run test - - name: Build - run: npm run build + - name: Build + run: npm run build - publish: - needs: build - runs-on: ubuntu-latest - if: ${{ github.event_name == 'release' }} + publish: + needs: build + runs-on: ubuntu-latest + if: ${{ github.event_name == 'release' }} - steps: - - name: Checkout code - uses: actions/checkout@v3 + steps: + - name: Checkout code + uses: actions/checkout@v4 - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: 16 - registry-url: https://registry.npmjs.org/ + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: https://registry.npmjs.org/ - - name: Install dependencies - run: npm ci + - name: Install dependencies + run: npm install - - name: Build - run: npm run build + - name: Build + run: npm run build - - name: Set new version - run: npm version --allow-same-version --no-git-tag-version ${{ github.event.release.tag_name }} + - name: Set new version + run: npm version --allow-same-version --no-git-tag-version ${{ github.event.release.tag_name }} - - name: Publish release - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} \ No newline at end of file + - name: Publish release + run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}