From 788a9cc04ac3a7b6cb19bae41906717ce41a8c8d Mon Sep 17 00:00:00 2001 From: Arnaud Grall Date: Thu, 16 May 2024 13:49:29 +0200 Subject: [PATCH] update workflows --- .github/workflows/codeql-analysis.yml | 12 ++++++------ .github/workflows/gh_pages_doc.yml | 4 ++-- .github/workflows/npm_release.yml | 5 +++-- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index a7226abc..1ed2dc34 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,10 +13,10 @@ name: "CodeQL" on: push: - branches: [ master, develop ] + branches: [ master, develop, next/* ] pull_request: # The branches below must be a subset of the branches above - branches: [ master, develop ] + branches: [ master, develop, next/* ] schedule: - cron: '35 18 1 * *' @@ -43,7 +43,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -51,15 +51,15 @@ jobs: # Prefix the list here with "+" to use these queries and those in the config file. # queries: ./path/to/local/query, your-org/your-repo/queries@main - name: Cache node modules (if needed) - uses: actions/cache@v2 + uses: actions/cache@v4 id: cache with: path: node_modules key: ${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('yarn.lock') }} - name: Install package (if needed) if: steps.cache.outputs.cache-hit != 'true' - run: yarn install + run: npm install -g yarn@berry && yarn install - name: Build TypeScript run: yarn build - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/gh_pages_doc.yml b/.github/workflows/gh_pages_doc.yml index f840cbd5..c4186c70 100644 --- a/.github/workflows/gh_pages_doc.yml +++ b/.github/workflows/gh_pages_doc.yml @@ -8,11 +8,11 @@ jobs: steps: - uses: actions/checkout@v4 - name: Use Node.js 16.x - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: "lts/*" - name: Install package - run: yarn install + run: npm install -g yarn@berry && yarn install - name: Build TS run: yarn build - name: Generate documentation diff --git a/.github/workflows/npm_release.yml b/.github/workflows/npm_release.yml index aad8ab87..4b9bebae 100644 --- a/.github/workflows/npm_release.yml +++ b/.github/workflows/npm_release.yml @@ -11,11 +11,12 @@ jobs: steps: - uses: actions/checkout@v4 # Setup .npmrc file to publish to npm - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v4 with: node-version: 'lts/*' registry-url: 'https://registry.npmjs.org' - - run: yarn install + - name: Package install + run: npm install -g yarn@berry && yarn install - run: yarn build - run: yarn publish env: