Fix esbuild-wasm dependency version in package.json #35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Theia to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - ci/github-pages | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pages: write | |
| id-token: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Install packages | |
| run: | | |
| sudo apt update | |
| sudo apt install -y libxkbfile-dev libsecret-1-dev | |
| - name: Set Up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| cache: 'npm' | |
| - name: Install Dependencies | |
| run: | | |
| npm install | |
| cd examples/browser-only && npm install | |
| - name: Build Theia | |
| id: build | |
| run: | | |
| npm run build | |
| npm run download:plugins:browser-only | |
| npm run build:browser-only | |
| - name: Upload static files as artifact | |
| id: deployment | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: examples/browser-only/lib/frontend/ | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |