Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
folkvir committed May 16, 2024
1 parent 2f2c906 commit 788a9cc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 * *'

Expand All @@ -43,23 +43,23 @@ 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.
# By default, queries listed here will override any specified in a config file.
# 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
4 changes: 2 additions & 2 deletions .github/workflows/gh_pages_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/npm_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 788a9cc

Please sign in to comment.