Skip to content

Bump to v0.11.0, add code mode example and WorkerExecutor edge case t… #28

Bump to v0.11.0, add code mode example and WorkerExecutor edge case t…

Bump to v0.11.0, add code mode example and WorkerExecutor edge case t… #28

Workflow file for this run

name: CI
on:
push:
branches: [main]
permissions:
contents: write
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- run: bun install --frozen-lockfile
- name: Typecheck
run: bunx tsc -p tsconfig.build.json --noEmit
- name: Test
run: bun test tests/core tests/azure
- name: Build
run: bun run build
- name: Release and publish if version is new
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
VERSION=$(node -p "require('./package.json').version")
TAG="v$VERSION"
if gh release view "$TAG" >/dev/null 2>&1; then
echo "Release $TAG already exists, skipping"
else
echo "Creating release $TAG"
gh release create "$TAG" --title "$TAG" --generate-notes
echo "Publishing stratus-sdk@$VERSION to npm"
npm publish --access public
fi