aamathews23 / aamathews23/personal
Improve CI / CD Pipelines
- 主要言語
- TypeScript
- スター
- 2
- フォーク
- 0
- 平均マージ
- 26分
- マージ済み PR(30日)
- 1
説明
## 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 }}
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。