From be5cc69b986533935c817a65d17183edefdf5f0f Mon Sep 17 00:00:00 2001 From: Andy Hempel Date: Wed, 20 Sep 2023 10:48:44 +0200 Subject: [PATCH] Feature/node upgrade (#21) * remove hard coded node versions upgrade checkout action --- .github/workflows/nodejs.yml | 5 +++-- .github/workflows/npm-audit.yml | 5 +++-- .github/workflows/npm-publish.yml | 10 ++++++---- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index b59d6c3..3e9ebc5 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -9,14 +9,15 @@ jobs: strategy: matrix: - node-version: [18.x, 19.x] + node-version: [lts/*, latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} + check-latest: true - run: npm install - run: npm run build --if-present - run: npm test diff --git a/.github/workflows/npm-audit.yml b/.github/workflows/npm-audit.yml index 169beb4..ec53cc3 100644 --- a/.github/workflows/npm-audit.yml +++ b/.github/workflows/npm-audit.yml @@ -11,14 +11,15 @@ jobs: strategy: matrix: - node-version: [18.x, 19.x] + node-version: [lts/*, latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} + check-latest: true - run: npm audit - run: npm outdated env: diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 6e0264a..45522b4 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -12,13 +12,14 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [18.x, 19.x] + node-version: [lts/*, latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} + check-latest: true - run: npm ci - run: npm test @@ -26,10 +27,11 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: lts/* + check-latest: true registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm publish --access public