diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e0f6058..79ea696 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,9 +4,11 @@ on: pull_request #on: [pull_request, push] jobs: - show: + typos: + name: Spell Check runs-on: ubuntu-latest steps: - - name: Show Env - # run: echo "Env ${{ env.ENV_ID }} - run: echo "Env for ci website pr" + - uses: taiki-e/checkout-action@v1 + - uses: crate-ci/typos@v1.26.0 + with: + files: . diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..e442c03 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,28 @@ +name: Check PR + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +jobs: + update-pr-description: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Update PR Description + uses: nefrob/pr-description@v1.1.2 + with: + content: "Hello there!" + regex: ".*" + regexFlags: s + token: ${{ secrets.GITHUB_TOKEN }} + pr: + runs-on: ubuntu-latest + steps: + - name: Show Env + # run: echo "Env ${{ env.ENV_ID }} + run: echo "Env for ci website pr" diff --git a/biome.json b/biome.json index bc89457..24de6c0 100644 --- a/biome.json +++ b/biome.json @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/1.9.2/schema.json", + "$schema": "https://biomejs.dev/schemas/1.9.3/schema.json", "files": { "ignore": [".next", "./**/*config.js", "./**/*.d.ts"], "ignoreUnknown": true diff --git a/docs/TODO.md b/docs/TODO.md index 21c723c..69ae3f6 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -1,2 +1,4 @@ https://stackoverflow.com/questions/76464269/how-to-rerun-a-github-action-workflow-from-the-command-line-and-have-the-status https://stackoverflow.com/questions/69893875/watch-gh-actions-workflow-output-in-cli + +# fix release automation diff --git a/package.json b/package.json index f68c73d..84aa02c 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,13 @@ "prettier:fix": "prettier --write . ", "clean": "rimraf .next out", "bump": "changeset version", - "pr:deploy": "git push origin develop && gh pr create -H develop -B master --fill", - "pr:push": "gh pr create --body '${nr git-cliff -l}' --title pr:deploy -d", + "pr:deploy-old": "git push origin develop && gh pr create -H develop -B master --fill", + "pr:deploy": "git push origin develop && gh pr create --head develop --base master --body '${nr git-cliff -l}' --title pr:deploy", + "pr:push": "gh pr create --body \"$(nr git-cliff -l)\" --title pr:for-develop --base develop -d --dry-run", + "pr:edit": "gh pr edit \"$(nr pr:number)\" --body \"$(nr git-cliff -l)\" --title pr:develop --base develop", + "pr:list": "gh pr list --state open --json number,title | jq -r '.[] | [.number, .title] | @tsv'", + "pr:l": "(echo -e 'PR Number\tTitle'; gh pr list --state open --json number,title | jq -r '.[] | [.number, .title] | @tsv') | column -t", + "pr:number": "gh pr view --json number --jq '.number' ", "gh:workflows": "gh workflow view", "ci:spelling": "act -j spelling", "ci:local": "act pull_request",