♻️ Improve parameters names #83
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: CI | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| on: ['push', 'pull_request'] | |
| jobs: | |
| ci: | |
| runs-on: ${{ matrix.os }} | |
| continue-on-error: ${{ matrix.experimental }} | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| os: [ubuntu-latest] | |
| node: [20.17] | |
| pnpm: [9.11.0] | |
| experimental: [false] | |
| name: 👷 CI Node-${{ matrix.node }} on ${{ matrix.os }} | |
| steps: | |
| - name: 🚚 Get latest code | |
| uses: actions/checkout@v4 | |
| - name: 🎉 Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: ⚡️ Setup PNPM | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: ${{ matrix.pnpm }} | |
| - name: ✅ Fix code style and build for production | |
| run: make build | |
| - name: 🧪 Test code style and components | |
| run: make test | |
| - name: 📦️ Upload Deno distribution files | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: deno_dist | |
| path: packages/colorwind/jsr | |
| - name: 📚 Install, build, and upload docs | |
| uses: withastro/action@v2 | |
| with: | |
| path: ./website | |
| node-version: ${{ matrix.node-version }} | |
| package-manager: pnpm@${{ matrix.pnpm-version }} | |
| docs: | |
| needs: ci | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: 📂 Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |