refactor(playground): editor #18
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - v2 | |
| permissions: | |
| id-token: write | |
| contents: write | |
| env: | |
| TURBO_TELEMETRY_DISABLED: 1 | |
| jobs: | |
| cache-and-install: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup turborepo cache | |
| uses: rharkor/caching-for-turbo@v2.2.1 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build packages and playground | |
| run: pnpm build | |
| - name: Deploy playground to GitHub Pages | |
| uses: JamesIves/github-pages-deploy-action@v4.7.4 | |
| with: | |
| branch: gh-pages | |
| folder: playground/dist | |
| # - name: Publish packages to NPM | |
| # shell: bash | |
| # run: | | |
| # echo "//registry.npmjs.org/:_authToken="${{ secrets.NPM_TOKEN }}"" > ~/.npmrc | |
| # pnpm -r --filter='./apps/*' publish --access public --provenance |