-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: build-addin | ||
description: 'Build the CrossModel Add-In.' | ||
|
||
|
||
runs: # windows-2019 # is needed because the Setup Python task does not work with ubuntu | ||
using: "composite" | ||
steps: | ||
- name: Set up Node js to use version 16.14.0 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16.14.0' | ||
|
||
- name: Node version | ||
uses: Amadevus/pwsh-script@v2.0.3 | ||
with: | ||
# PowerShell script to execute in Actions-hydrated context | ||
script: | | ||
node -v | Write-Host | ||
- name: Setup Python to use version 3.7.9 | ||
uses: actions/setup-python@v4.6.1 | ||
with: | ||
# Version range or exact version of Python or PyPy to use, using SemVer's version range syntax. Reads from .python-version if unset. | ||
python-version: 3.7.9 | ||
|
||
- name: Python version | ||
uses: Amadevus/pwsh-script@v2.0.3 | ||
with: | ||
# PowerShell script to execute in Actions-hydrated context | ||
script: | | ||
python --version | Write-Host | ||
- name: Set up yarn to use version 1.22.18 | ||
uses: Amadevus/pwsh-script@v2.0.3 | ||
with: | ||
# PowerShell script to execute in Actions-hydrated context | ||
script: | | ||
yarn policies set-version 1.22.18 | ||
- name: Yarn version | ||
uses: Amadevus/pwsh-script@v2.0.3 | ||
with: | ||
# PowerShell script to execute in Actions-hydrated context | ||
script: | | ||
yarn --version | Write-Host | ||
- name: Yarn build | ||
uses: Amadevus/pwsh-script@v2.0.3 | ||
with: | ||
# PowerShell script to execute in Actions-hydrated context | ||
script: | | ||
yarn | ||
#- name: Yarn start browser | ||
# run: | | ||
# yarn start:browser | ||
# curl http://localhost:3000/ | ||
# echo DONE |