From 8c7d33be8cee87789e749b1d13eaeebe12235eed Mon Sep 17 00:00:00 2001 From: mesqueeb Date: Sat, 1 Jun 2024 13:01:45 +0900 Subject: [PATCH] build: improve workflow --- .github/workflows/deploy-docs.yml | 4 ++-- .github/workflows/preview-docs.yml | 4 ++-- .github/workflows/publish-npm.yml | 4 ++-- .github/workflows/test.yml | 6 +++--- .vscode/settings.json | 4 +++- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 9a0b782..a2a31b3 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -18,8 +18,8 @@ jobs: url: ${{ steps.deploy-pages.outputs.page_url }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: cache: npm - run: npm ci diff --git a/.github/workflows/preview-docs.yml b/.github/workflows/preview-docs.yml index c68dc7d..e3f8947 100644 --- a/.github/workflows/preview-docs.yml +++ b/.github/workflows/preview-docs.yml @@ -16,8 +16,8 @@ jobs: preview-docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: cache: npm - run: npm ci diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 270cb83..0216bf1 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -10,8 +10,8 @@ jobs: publish-npm: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: cache: npm registry-url: https://registry.npmjs.org/ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 22a899b..60bec19 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,11 +25,11 @@ jobs: test: strategy: matrix: - node-version: ['16', '18', '20'] + node-version: ['18', '20'] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: npm diff --git a/.vscode/settings.json b/.vscode/settings.json index 5ce2440..bca3ab8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,5 +5,7 @@ "editor.insertSpaces": true, "files.insertFinalNewline": true, "files.trimFinalNewlines": true, - "files.trimTrailingWhitespace": true + "files.trimTrailingWhitespace": true, + "javascript.preferences.importModuleSpecifierEnding": "js", + "typescript.preferences.importModuleSpecifierEnding": "js" }