feat: rolling feed #619
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: Entrypoint | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| - 'upcoming' | |
| pull_request: | |
| branches: | |
| - '**' | |
| # Called by the "Publish upcoming snapshot to npm" orchestrator on push to `upcoming`. | |
| workflow_call: | |
| jobs: | |
| entrypoint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| - name: Install npm deps | |
| run: npm ci | |
| - name: Build project | |
| run: npm run build | |
| env: | |
| NODE_ENV: production | |
| - name: Create npm package | |
| run: npm pack | |
| - name: Verify package entrypoint files | |
| run: | |
| npx npxie eval-and-expect "tar -tf *.tgz" | |
| "package/package.json|package/dist/cjs/index.js|package/dist/mjs/index.js|package/dist/index.browser.min.js|package/dist/types/index.d.ts" | |
| "|" |