diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/format.yml | 9 | ||||
| -rw-r--r-- | .github/workflows/publish.yml | 17 |
2 files changed, 13 insertions, 13 deletions
diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index e78702301..7a42fe823 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -20,10 +20,9 @@ jobs: with: bun-version: 1.2.21 - - name: Install dependencies - run: bun install - - - name: Run format - run: ./script/format.ts + - name: run + run: | + bun install + ./script/format.ts env: CI: true diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 645a7b504..51ffa4908 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,14 +4,14 @@ run-name: "${{ format('v{0}', inputs.version) }}" on: workflow_dispatch: inputs: - version: - description: "Version to publish" + bump: + description: "Bump major, minor, or patch" required: true - type: string - title: - description: "Custom title for this run" - required: false - type: string + type: choice + options: + - major + - minor + - patch concurrency: ${{ github.workflow }}-${{ github.ref }} @@ -65,8 +65,9 @@ jobs: - name: Publish run: | - OPENCODE_VERSION=${{ inputs.version }} ./script/publish.ts + ./script/publish.ts env: + OPENCODE_BUMP: ${{ inputs.bump }} GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }} AUR_KEY: ${{ secrets.AUR_KEY }} NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }} |
