Skip to content

docs(demo): publicPath behaviour changed with Rspack #17

docs(demo): publicPath behaviour changed with Rspack

docs(demo): publicPath behaviour changed with Rspack #17

Workflow file for this run

name: push
on:
push:
branches: [main]
jobs:
test-publish-build-release:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v4
- run: npm install
- name: 🚧 Build
run: npm run build
- name: 🛠️ Build Demo
run: |
cd demo
npm install --legacy-peer-deps
npx papua build
- name: 🚀 Deploy Demo
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: demo
folder: demo/dist
- name: 🖥️ Serve Demo for Test
run: |
cd demo
# The & at the end ensures that the command exits
# and the server continues in the background.
npx papua serve &
- name: 🌲 Cypress Test
uses: cypress-io/github-action@v6
with:
install: false
# Wait for server above to start before testing.
wait-on: 'http://localhost:3000'
wait-on-timeout: 240
- name: 📢 Release
uses: tobua/release-npm-action@v3
with:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}