[Snyk] Security upgrade next from 10.1.2 to 13.5.0 #228
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node.js CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
lint: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js 15 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "15" | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn config get cacheFolder)" | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
id: yarn-cache | |
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 | |
- name: Lint | |
run: yarn style:check | |
build: | |
needs: lint | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js 15 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "15" | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn config get cacheFolder)" | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
id: yarn-cache | |
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 | |
- name: Build | |
run: yarn build | |
env: | |
APP_TITLE: "Nimiq.link" | |
DOMAINS: "nmlnk.mrv.wtf" | |
MAIN_DOMAIN: "nmlnk.mrv.wtf" | |
HCAPTCHA_SITE_KEY: "df9dcd0d-61a1-4b74-97e8-8407e6ba959e" | |
ENABLE_HCAPTCHA: "true" | |
SHORT_LENGTH: "3" | |
SHORT_CHARACTERS: "abcdefghiklmnpqrstuvwxyz456789" |