summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/publish-github-action.yml
blob: ffdc1f465dcb371221d864f224c49cb00e24965e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: publish-github-action

on:
  workflow_dispatch:

concurrency: ${{ github.workflow }}-${{ github.ref }}

permissions:
  contents: write

jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0

      - run: git fetch --force --tags

      - uses: oven-sh/setup-bun@v2
        with:
          bun-version: 1.2.17

      - name: Publish
        run: |
          git config --global user.email "[email protected]"
          git config --global user.name "opencode"
          ./script/publish-github-action.ts
        working-directory: ./packages/opencode