feat: align Qwen Code platform with OpenCode (agents + commands dirs) #13
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: Publish Package | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v5 | |
| with: | |
| version: 10.29.2 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| registry-url: https://registry.npmjs.org | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build packages | |
| run: pnpm build | |
| - name: Run tests | |
| run: pnpm test | |
| - name: Check published version | |
| id: package_version | |
| run: | | |
| LOCAL_VERSION=$(node -p "require('./packages/cli/package.json').version") | |
| PUBLISHED_VERSION=$(npm view spec-driven-steroids version 2>/dev/null || true) | |
| echo "local_version=$LOCAL_VERSION" >> "$GITHUB_OUTPUT" | |
| echo "published_version=$PUBLISHED_VERSION" >> "$GITHUB_OUTPUT" | |
| if [ "$LOCAL_VERSION" = "$PUBLISHED_VERSION" ]; then | |
| echo "already_published=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "already_published=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Publish to npm | |
| if: steps.package_version.outputs.already_published != 'true' | |
| working-directory: packages/cli | |
| run: npm publish | |
| - name: Summarize publish result | |
| run: | | |
| if [ "${{ steps.package_version.outputs.already_published }}" = "true" ]; then | |
| echo "spec-driven-steroids@${{ steps.package_version.outputs.local_version }} is already published." >> "$GITHUB_STEP_SUMMARY" | |
| else | |
| echo "Published spec-driven-steroids@${{ steps.package_version.outputs.local_version }} to npm." >> "$GITHUB_STEP_SUMMARY" | |
| fi |