v0.1.4 #5
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: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| jobs: | |
| publish-npm: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install dependencies | |
| run: ./bun install | |
| - name: Typecheck | |
| run: ./bun run typecheck | |
| - name: Lint | |
| run: ./bun run lint | |
| - name: Test (unit) | |
| run: find packages -name '*.test.ts' ! -name '*.integration.test.ts' -print0 | xargs -0 ./bun test | |
| - name: Build @memory-engine/protocol | |
| run: ./bun run --filter '@memory-engine/protocol' build | |
| - name: Build @memory-engine/client | |
| run: ./bun run --filter '@memory-engine/client' build | |
| - name: Publish @memory-engine/protocol | |
| run: cd packages/protocol && ../../bun publish --access public | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Publish @memory-engine/client | |
| run: cd packages/client && ../../bun publish --access public | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| build-cli: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install dependencies | |
| run: ./bun install | |
| - name: Build CLI (all platforms) | |
| run: ./bun run build:all | |
| - name: Generate checksums | |
| run: | | |
| cd dist | |
| for file in me-*; do | |
| sha256sum "$file" > "${file}.sha256" | |
| done | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v3 | |
| with: | |
| files: dist/me-* | |
| generate_release_notes: true |