From 1a6b884be0204390ffb36b096e9a836310ea2e92 Mon Sep 17 00:00:00 2001 From: Nicolas Pennec Date: Thu, 21 Sep 2023 22:16:17 +0200 Subject: [PATCH 1/2] [ci] bump to actions/checkout v4 --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bbe9eca949..e93e4fe2da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Build release env: NODE_OPTIONS: "--max_old_space_size=8192" From c8f39bcf925d8afb566398c2bad3e9a89a800bcc Mon Sep 17 00:00:00 2001 From: Nicolas Pennec Date: Thu, 21 Sep 2023 22:18:46 +0200 Subject: [PATCH 2/2] [ci] improve logs --- .github/workflows/ci.yml | 10 ++++++---- .github/workflows/release.yml | 8 +++++--- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1b130234a1..7ee699c31d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,5 @@ --- -name: "Kitsu CI" +name: 'Kitsu CI' on: pull_request: @@ -15,18 +15,20 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [ 18, 20 ] + node: [18, 20] steps: - uses: actions/checkout@v4 - name: Setup node uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} - cache: "npm" + cache: 'npm' - name: Run tests env: - NODE_OPTIONS: "--max_old_space_size=8192" + NODE_OPTIONS: '--max_old_space_size=8192' run: | + echo "Node.js $(node -v)" + echo "npm v$(npm -v)" npm ci npm run lint -- --quiet npm run test:unit diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e93e4fe2da..682907d1fc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,5 @@ --- -name: "Kitsu release" +name: 'Kitsu release' on: push: @@ -18,8 +18,10 @@ jobs: fetch-depth: 0 - name: Build release env: - NODE_OPTIONS: "--max_old_space_size=8192" + NODE_OPTIONS: '--max_old_space_size=8192' run: | + echo "Node.js $(node -v)" + echo "npm v$(npm -v)" npm ci npm run build GIT_COMMIT="$(git rev-parse HEAD)" @@ -37,7 +39,7 @@ jobs: uses: ncipollo/release-action@v1 id: create_release with: - artifacts: "kitsu-*.tgz,kitsu-*.SHA512" + artifacts: 'kitsu-*.tgz,kitsu-*.SHA512' token: ${{ secrets.GITHUB_TOKEN }} - name: Update "build" branch if: startsWith(github.ref, 'refs/tags')