Skip to content

Update @spectrum-web-components to v1.0.0 #14

Update @spectrum-web-components to v1.0.0

Update @spectrum-web-components to v1.0.0 #14

name: build and deploy
on:
push:
branches: ["main"]
env:
NODE_VERSION: 20
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- run: npm install
- run: npm run build:production
- run: npm run patterns:download
- run: npm run patterns:install
- name: Copy dist files into public
run: cp -r ./dist/. ./public
- uses: actions/configure-pages@v4
- uses: actions/upload-pages-artifact@v3
with:
path: ./public
deploy:
needs: build
name: deploy
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4