Fix working directory #4
Workflow file for this run
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: Build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# Having "" here enables the `node-version-file` option | |
node-version: ["", 14, 16, 18, 20] | |
steps: | |
- name: Checkout main repo | |
uses: actions/checkout@v4 | |
with: | |
path: korp-frontend | |
- name: Checkout Språkbanken config repo | |
uses: actions/checkout@v4 | |
with: | |
repository: spraakbanken/korp-frontend-sb | |
token: ${{ secrets.ACCESS_TOKEN }} | |
ref: ${{ github.ref == 'master' && 'master' || 'dev' }} # Choose dev or master matching the main repo. | |
path: korp-frontend-sb | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
node-version-file: .nvmrc | |
- name: Install dependencies | |
working-directory: korp-frontend | |
run: yarn install | |
- name: Link config | |
working-directory: korp-frontend | |
run: | | |
echo '{"configDir": "../korp-frontend-sb/app"}' > run_config.json | |
- name: Build | |
working-directory: korp-frontend | |
run: yarn build |