chore: align root package.json version to 0.10.3 #20
Workflow file for this run
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: Publish | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'pnpm' | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm lint | |
| - run: pnpm test | |
| # Browser tests | |
| - run: pnpm demo:web:install | |
| - run: npx --prefix alfred/examples/web playwright install --with-deps chromium | |
| - run: pnpm test:browser | |
| # Cloudflare Workers tests | |
| - run: docker build -f alfred/examples/cloudflare-worker/Dockerfile -t alfred-cf-test alfred | |
| - run: docker run --rm alfred-cf-test | |
| publish: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # Required for creating releases | |
| id-token: write # Required for provenance | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| registry-url: 'https://registry.npmjs.org' | |
| cache: 'pnpm' | |
| - name: Upgrade npm for OIDC | |
| run: npm install -g npm@11.5.1 | |
| - name: Install Dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Publish Packages | |
| run: pnpm release:publish | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| generate_release_notes: true |