Skip to content

publish executor v1.2.6 #50

publish executor v1.2.6

publish executor v1.2.6 #50

name: Publish Executor
run-name: "${{ format('publish executor {0}', github.event_name == 'workflow_dispatch' && inputs.tag || github.ref_name) }}"
on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
tag:
description: Git tag to publish
required: true
type: string
permissions:
contents: write
id-token: write
concurrency:
group: publish-executor-package-${{ github.ref }}
cancel-in-progress: false
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event_name == 'workflow_dispatch' && format('refs/tags/{0}', inputs.tag) || github.ref }}
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 24
registry-url: https://registry.npmjs.org
- name: Update npm for trusted publishing
run: |
npm install -g npm@latest
npm --version
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run executor checks
run: |
bun run --cwd apps/executor typecheck
bun run --cwd apps/executor test
- name: Publish package and create release
env:
GH_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
RELEASE_TAG: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref_name }}
run: |
export GITHUB_REF_TYPE=tag
export GITHUB_REF_NAME="$RELEASE_TAG"
export GITHUB_REF="refs/tags/$RELEASE_TAG"
if [ -n "${NPM_TOKEN:-}" ]; then
export NODE_AUTH_TOKEN="$NPM_TOKEN"
fi
bun run --cwd apps/executor release:publish