fix: prevent skills from loading twice when invoked via slash commands #4
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: | |
| release: | |
| name: Create Release | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install dependencies | |
| working-directory: ./mcp-server | |
| run: npm ci | |
| - name: Run tests | |
| working-directory: ./mcp-server | |
| run: npm test | |
| - name: Build | |
| working-directory: ./mcp-server | |
| run: npm run build | |
| - name: Extract version from tag | |
| id: get_version | |
| run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| name: Release v${{ steps.get_version.outputs.VERSION }} | |
| body: | | |
| ## StackShift v${{ steps.get_version.outputs.VERSION }} | |
| ### Changes | |
| See [CHANGELOG.md](https://github.com/${{ github.repository }}/blob/main/CHANGELOG.md) for details. | |
| ### Installation | |
| **MCP Server:** | |
| ```bash | |
| npm install -g stackshift-mcp@${{ steps.get_version.outputs.VERSION }} | |
| ``` | |
| **Claude Code Plugin:** | |
| ```bash | |
| # Copy plugin directory to your Claude Code workspace | |
| cp -r plugin/ ~/.claude/plugins/stackshift/ | |
| ``` | |
| ### Verification | |
| ```bash | |
| # Verify installation | |
| stackshift --version | |
| # Or check via Claude Code | |
| /stackshift.analyze | |
| ``` | |
| draft: false | |
| prerelease: false | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Publish to npm (deferred) | |
| run: | | |
| echo "npm publication deferred per project clarifications" | |
| echo "To publish manually later: npm publish --access public" | |
| # Uncomment to enable npm publishing: | |
| # working-directory: ./mcp-server | |
| # run: npm publish --access public | |
| # env: | |
| # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| build-assets: | |
| name: Build Distribution Assets | |
| runs-on: ubuntu-latest | |
| needs: release | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| - name: Build MCP Server | |
| working-directory: ./mcp-server | |
| run: | | |
| npm ci | |
| npm run build | |
| - name: Package Plugin | |
| run: | | |
| tar -czf stackshift-plugin-${{ github.ref_name }}.tar.gz plugin/ | |
| - name: Package MCP Server | |
| working-directory: ./mcp-server | |
| run: | | |
| npm pack | |
| mv stackshift-mcp-*.tgz ../stackshift-mcp-${{ github.ref_name }}.tgz | |
| - name: Upload Release Assets | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: | | |
| stackshift-plugin-${{ github.ref_name }}.tar.gz | |
| stackshift-mcp-${{ github.ref_name }}.tgz | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |