From 7d42d25ca9b71de9d4354d93541358a0f9aa6618 Mon Sep 17 00:00:00 2001 From: soags <17847282+soags@users.noreply.github.com> Date: Fri, 26 Jul 2024 11:45:32 +0900 Subject: [PATCH] Update CI --- .github/workflows/lint.yml | 13 +++++++------ .github/workflows/publish.yml | 16 +++++++--------- .github/workflows/test.yml | 13 +++++++------ 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ef4853a..2a3849f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,16 +9,17 @@ on: jobs: lint: runs-on: ubuntu-latest - + strategy: + matrix: + node-version: [20] steps: - uses: actions/checkout@v4 - - - uses: actions/setup-node@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 with: - node-version: 20 - + node-version: ${{ matrix.node-version }} + cache: 'npm' - name: Install dependencies run: npm ci - - name: Lint run: npm run lint diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4621aad..10e270d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,27 +6,25 @@ on: jobs: publish: - name: Publish runs-on: ubuntu-latest - + strategy: + matrix: + node-version: [20] permissions: contents: read id-token: write - steps: - uses: actions/checkout@v4 - - - uses: actions/setup-node@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 with: - node-version: 20 + node-version: ${{ matrix.node-version }} registry-url: https://registry.npmjs.org/ - + cache: 'npm' - name: Install dependencies run: npm ci - - name: Build run: npm run build - - name: Publish run: npm publish --provenane --access public env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 014caa9..b81010b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,16 +9,17 @@ on: jobs: test: runs-on: ubuntu-latest - + strategy: + matrix: + node-version: [20] steps: - uses: actions/checkout@v4 - - - uses: actions/setup-node@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 with: - node-version: 20 - + node-version: ${{ matrix.node-version }} + cache: 'npm' - name: Install dependencies run: npm ci - - name: Build run: npm run build