Skip to content

Commit

Permalink
Create action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Moo925 committed Jun 7, 2023
1 parent 495599a commit 55448db
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/actions/build-addin/action.yml
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

0 comments on commit 55448db

Please sign in to comment.