aamathews23 / aamathews23/personal
Improve CI / CD Pipelines
- Linguagem predominante
- TypeScript
- Estrelas
- 2
- Forks
- 0
- Merge médio
- 26min
- PRs com merge (30d)
- 1
Descrição
## Description
Improve my CI / CD pipelines by automatically detecting changes and running jobs against what actually changed.
* https://pnpm.io/filtering#--filter-since
* Switch apps to use local WASM dependencies.
```yaml
name: CI & Quick Deploy
on:
push:
branches: [main]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Tools
uses: pnpm/action-setup@v4
# Setup Rust to build the local WASM file
- name: Setup Rust & Wasm-Pack
uses: dtolnay/rust-toolchain@stable
- name: Install wasm-pack
run: curl https://github.io -sSf | sh
- name: Install Node Dependencies
run: pnpm install --frozen-lockfile
# 1. Compile the WASM files locally into the packages directory
- name: Compile WASM Package
run: pnpm --filter="rust-wasm-lib" exec wasm-pack build --target web --out-dir pkg
# 2. Build and deploy your React Router 7 app instantly using the local WASM files
- name: Cloudflare Deploy
run: pnpm --filter="...[origin/main]" run deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# 3. Publish to npm via Changesets in the background (Independent of deployment)
- name: Run Changesets Release
uses: changeset/action@v1
with:
version: pnpm changeset version
publish: pnpm changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
```
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
The issue references a GitHub Actions workflow in the body. Start by locating the existing CI/CD configuration in the repository. Understand the monorepo structure and how pnpm filtering works. The goal is to modify the workflow to use `--filter=...[origin/main]` to run jobs only on changed packages and to ensure local WASM dependencies are built and used correctly. Test changes by pushing to a branch and observing the workflow execution.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- github-actions, wasm
- Domínio
- build-system, ci-cd, tooling
- Tipo de issue
- Funcionalidade
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Ativa
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 55/100