@Dale Godfredson Since Elm uses the Node.js toolchain, you can add a package.json with the proper dev dependencies and build scripts:
// package.json
{
// ...
"scripts": {
"build": "elm-app build"
},
"devDependencies": {
"create-elm-app": "^5.22.0"
}
}
You can use the standard Azure/static-web-apps-deploy@v1
action with these settings:
app_location: "/" # App source code path
api_location: "" # Api source code path - optional
output_location: "build" # Built app content directory - optional
Take a look at this sample: https://github.com/anthonychu/20210815-test-elm
You can also build the app separately, like you've attempted to do. Looks like the error you're getting was caused by line 57:
run: npm install create-elm-app
It should be installed globally:
run: npm install create-elm-app -g
In addition, because you're building the app in a separate step using elm-app build
, you need to set up the Azure/static-web-apps-deploy@v1
action differently:
app_location: "build" # App source code path
api_location: "" # Api source code path - optional
skip_app_build: true