Skip to content

ci: adjust codeql setting to scan both typescript and javascript #24

ci: adjust codeql setting to scan both typescript and javascript

ci: adjust codeql setting to scan both typescript and javascript #24

Workflow file for this run

name: Build
on:
push:
branches:
- 'develop'
- 'master'
tags-ignore:
- '**' #prevent double build on release tag
pull_request:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Node.js version
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Restore yarn cache
uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: |
yarn install --frozen-lockfile
- name: Build
run: |
yarn build
- name: Archive build artifacts
uses: actions/upload-artifact@v3
with:
name: dist # artifacts zip name
path: |
dist