Fix import sorting in worker-entry.ts #15
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
| # Release -- tag it, validate it, ship it. In that order. | |
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| id-token: write | |
| jobs: | |
| validate: | |
| name: Validate | |
| runs-on: [self-hosted, linux, x64, vps] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: '24' | |
| cache: 'npm' | |
| - run: npm ci | |
| - name: Typecheck | |
| run: npm run typecheck | |
| - name: Lint | |
| run: npm run lint | |
| - name: Test | |
| run: npm test | |
| - name: Build | |
| run: npm run build | |
| - name: Budget checks | |
| run: npm run ci:budgets | |
| - name: MCP smoke test | |
| run: npm run smoke:mcp | |
| - name: Verify dist/index.js exists | |
| run: | | |
| if [ ! -f "dist/index.js" ]; then | |
| echo "::error::Missing artifact: dist/index.js" | |
| exit 1 | |
| fi | |
| publish: | |
| name: Publish to npm | |
| runs-on: [self-hosted, linux, x64, vps] | |
| needs: validate | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: '24' | |
| cache: 'npm' | |
| registry-url: https://registry.npmjs.org | |
| - run: npm ci | |
| - name: Build | |
| run: npm run build | |
| - name: Publish to npm | |
| run: npm publish --access public | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| github-release: | |
| name: GitHub Release | |
| runs-on: [self-hosted, linux, x64, vps] | |
| needs: publish | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: GitHub Release | |
| uses: softprops/action-gh-release@v2.6.1 | |
| with: | |
| generate_release_notes: true |