Skip to content

Add env step to the build #24

Add env step to the build

Add env step to the build #24

Workflow file for this run

name: build
on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master, dev ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm audit
continue-on-error: true
- run: npm run lint
- run: npm run package
- env:
TEST_BING_KEY: ${{ secrets.TEST_BING_KEY }}
BING_KEY: ${{ secrets.BING_KEY}}
run: |
touch .env
echo TEST_BING_KEY="$TEST_BING_KEY" >> .env
echo BING_KEY = "$BING_KEY"
echo TEST_BING_KEY = "$TEST_BING_KEY"
- run: npm run test
env:
CI: true