chore: remove bundled agent skills and skills-lock.json #22
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: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| jobs: | |
| version: | |
| if: "!startsWith(github.event.head_commit.message, 'chore: bump version')" | |
| runs-on: ubuntu-latest | |
| outputs: | |
| new_tag: ${{ steps.bump.outputs.new_tag }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - id: bump | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| npm version patch --no-git-tag-version | |
| NEW_VERSION=$(node -e "console.log(require('./package.json').version)") | |
| NEW_TAG="v${NEW_VERSION}" | |
| git add package.json | |
| git commit -m "chore: bump version to ${NEW_TAG}" | |
| git push origin HEAD:main | |
| git tag "${NEW_TAG}" | |
| git push origin "${NEW_TAG}" | |
| echo "new_tag=${NEW_TAG}" >> $GITHUB_OUTPUT | |
| build-mac: | |
| needs: version | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ needs.version.outputs.new_tag }} | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - run: npm install | |
| - run: npm run release | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| build-windows: | |
| needs: version | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ needs.version.outputs.new_tag }} | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - run: npm install --ignore-scripts | |
| - run: npx @electron/rebuild -f -w better-sqlite3 | |
| - run: npm run release | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| publish: | |
| needs: [version, build-mac, build-windows] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: gh release edit ${{ needs.version.outputs.new_tag }} --draft=false --repo RubenGlez/samplebyte | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |