diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index cb92ce2..ec46d28 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -9,9 +9,12 @@ on: permissions: pull-requests: read + statuses: write jobs: ValidatePrTitle: runs-on: ubuntu-latest steps: - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index ef5670b..dfb0e44 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -22,15 +22,18 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha || github.ref }} - - name: Setup Tooling - uses: jdx/mise-action@d6e32c1796099e0f1f3ac741c220a8b7eae9e5dd - with: - install: true - cache: true - experimental: true - - - name: lint - run: mise run lint + - name: Setup Tooling + uses: jdx/mise-action@d6e32c1796099e0f1f3ac741c220a8b7eae9e5dd + with: + install: true + cache: true + experimental: true + + - name: Install dependencies + run: bun install + + - name: lint + run: mise run lint - name: unit test run: mise run unittest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2dacb45..9d6fda2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,12 +1,13 @@ +--- name: Release on: push: branches: - - master + - main env: - HUSKY: 0 # https://typicode.github.io/husky/how-to.html#ci-server-and-docker + HUSKY: 0 # https://typicode.github.io/husky/how-to.html#ci-server-and-docker concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -16,7 +17,7 @@ permissions: contents: write deployments: write pull-requests: write - id-token: write # needed for npm oicd login + id-token: write # needed for npm oidc login jobs: Process: @@ -32,10 +33,7 @@ jobs: - name: Print Release Data run: | echo 'Release Data:' - - echo ''' - ${{ toJSON(steps.release-please.outputs) }} - ''' + echo '${{ toJSON(steps.release-please.outputs) }}' Deploy: needs: Process @@ -55,6 +53,7 @@ jobs: run: mise run build - if: ${{ needs.Process.outputs.releases_created == 'true' }} + name: Publish release run: mise run publish --tag latest - if: ${{ needs.Process.outputs.prs_created == 'true' }}