-
Notifications
You must be signed in to change notification settings - Fork 86
41 lines (33 loc) · 1.16 KB
/
build-windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Windows Build
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# When using Corepack and yarn on Windows, it's necessary to set up the node version twice. Otherwise the version doesn't match the engine specified in package.json.
- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Setup Node and Yarn
uses: ./.github/actions/setup
with:
npm-auth-token: ${{ secrets.GITHUB_TOKEN }}
- name: Set environment
run: |
New-Item -ItemType File -Path apps/web/.env -Force
Add-Content -Path apps/web/.env -Value "API_SECURITY_TOKEN=${{ secrets.API_SECURITY_TOKEN }}"
Add-Content -Path apps/web/.env -Value "API_ENDPOINT=https://mevofvd5omld.c01-14.plentymarkets.com"
Add-Content -Path apps/web/.env -Value "DEFAULT_FEEDBACK_ITEMS_PER_PAGE=1"
shell: pwsh
- name: Install dependencies
run: yarn --immutable
- name: Build app
run: |
yarn build