diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 653d313..a96768c 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -1,33 +1,13 @@ name: Format on: + workflow_dispatch: push: branches: - main jobs: format: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.head_ref }} - token: ${{ secrets.GITHUB_TOKEN }} - - uses: pnpm/action-setup@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: "pnpm" - - name: Install dependencies - run: pnpm install - - name: Format code - run: pnpm run format - - name: Commit changes - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_message: "[ci] format" - branch: ${{ github.head_ref }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + if: github.repository_owner == 'bombshell-dev' + uses: bombshell-dev/automation/.github/workflows/format.yml@main + secrets: inherit diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5293020..04c0e56 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,10 +25,7 @@ jobs: with: node-version: 20 cache: "pnpm" - # Run prepublish to ensure everything is built properly - # TODO: is this manual build step actually needed? - run: pnpm run ci:install - # `prepack` hook _should_ run but doesn't seem to. - run: pnpm run ci:prepublish - name: Create Release Pull Request or Publish to npm id: changesets @@ -47,6 +44,3 @@ jobs: pnpm run deps:check env: NODE_ENV: production - - name: Publish to jsr.io - if: steps.changesets.outputs.published == 'true' - run: pnpx @qingshaner/jsr-release publish --changesetReleases='${{ steps.changesets.outputs.publishedPackages }}'