From ebffb5426ef2b836d8d0f737df770d15eb397543 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mangeonjean?= Date: Tue, 28 Apr 2026 11:16:40 +0200 Subject: [PATCH] lib: update github actions - replace last volta by mise - update actions to last version - format files --- .github/workflows/check_build.yml | 50 +++++++++--------- .github/workflows/release.yml | 84 +++++++++++++++---------------- 2 files changed, 67 insertions(+), 67 deletions(-) diff --git a/.github/workflows/check_build.yml b/.github/workflows/check_build.yml index 95cf2b1b..7ab33cae 100644 --- a/.github/workflows/check_build.yml +++ b/.github/workflows/check_build.yml @@ -13,8 +13,8 @@ jobs: with: # we actually need "github.event.pull_request.commits + 1" commit fetch-depth: 0 - - name: Volta - uses: volta-cli/action@v4 + - name: mise-en-place + uses: jdx/mise-action@v4 - run: npm ci --ignore-scripts - run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose check: @@ -22,26 +22,26 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v6 - - name: Install build dependencies - run: | - sudo apt-get update - sudo apt-get install libkrb5-dev libxkbfile-dev libx11-6 - - name: mise-en-place - uses: jdx/mise-action@v3 - - name: Install dependencies - run: npm ci - - name: Build - run: npm run build - - name: Release dry run - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npm run release -- --dry-run - - name: Install demo dependencies - working-directory: ./demo - run: npm ci - - name: Build demo - working-directory: ./demo - run: npm run build \ No newline at end of file + - name: Checkout + uses: actions/checkout@v6 + - name: Install build dependencies + run: | + sudo apt-get update + sudo apt-get install libkrb5-dev libxkbfile-dev libx11-6 + - name: mise-en-place + uses: jdx/mise-action@v4 + - name: Install dependencies + run: npm ci + - name: Build + run: npm run build + - name: Release dry run + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npm run release -- --dry-run + - name: Install demo dependencies + working-directory: ./demo + run: npm ci + - name: Build demo + working-directory: ./demo + run: npm run build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bf1ec9d6..d58554b2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,11 +2,11 @@ name: Release on: workflow_dispatch permissions: - contents: write # to be able to publish a GitHub release - issues: write # to be able to comment on released issues + contents: write # to be able to publish a GitHub release + issues: write # to be able to comment on released issues pull-requests: write # to be able to comment on released pull requests - pages: write # to deploy to Pages - id-token: write # to verify the deployment originates from an appropriate source + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source deployments: write statuses: write @@ -16,41 +16,41 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v6 - with: - # get all tags for semantic release - fetch-depth: 0 - - name: Install build dependencies - run: | - sudo apt-get update - sudo apt-get install libkrb5-dev libxkbfile-dev libx11-6 pkg-config - - name: mise-en-place - uses: jdx/mise-action@v3 - - name: Install dependencies - run: npm ci - - name: Build - run: npm run build - - name: Release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npm run release - - name: Install demo dependencies - working-directory: ./demo - run: npm ci - - name: Build demo - working-directory: ./demo - run: npm run build:netlify - - name: Deploy to Netlify - uses: nwtgck/actions-netlify@v3.0 - with: - publish-dir: './demo/dist' - production-branch: main - github-token: ${{ secrets.GITHUB_TOKEN }} - deploy-message: ${{ github.event.pull_request.title }} - netlify-config-path: ./demo/netlify.toml - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} - timeout-minutes: 1 + - name: Checkout + uses: actions/checkout@v6 + with: + # get all tags for semantic release + fetch-depth: 0 + - name: Install build dependencies + run: | + sudo apt-get update + sudo apt-get install libkrb5-dev libxkbfile-dev libx11-6 pkg-config + - name: mise-en-place + uses: jdx/mise-action@v4 + - name: Install dependencies + run: npm ci + - name: Build + run: npm run build + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npm run release + - name: Install demo dependencies + working-directory: ./demo + run: npm ci + - name: Build demo + working-directory: ./demo + run: npm run build:netlify + - name: Deploy to Netlify + uses: nwtgck/actions-netlify@v3.0 + with: + publish-dir: './demo/dist' + production-branch: main + github-token: ${{ secrets.GITHUB_TOKEN }} + deploy-message: ${{ github.event.pull_request.title }} + netlify-config-path: ./demo/netlify.toml + env: + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + timeout-minutes: 1