Skip to content

include npm install in deploy #73

include npm install in deploy

include npm install in deploy #73

# Made by Isaac Van Doren. Source at https://github.com/isaacvando/elm-to-gh-pages.

Check failure on line 1 in .github/workflows/to-github.-pages.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/to-github.-pages.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: install-js-packages
name: Deploy an Elm app to GitHub Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# Cancel current deployment when a new push occurs
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
install-js-packages:
runs-on: ubuntu-latest
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build js dependencies
uses: bahmutov/npm-install@v1
- name: Build Elm artifact
uses: jorelali/setup-elm@v5
with:
elm-version: 0.19.1
- run: npx vite build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2