diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 3a951fa..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,70 +0,0 @@ -name: CI - -permissions: {} - -on: - push: - branches: - - main - pull_request: - workflow_dispatch: - -concurrency: - group: ${{ github.workflow }}-${{ github.event.number || github.sha }} - cancel-in-progress: true - -jobs: - test: - timeout-minutes: 20 - runs-on: ubuntu-latest - name: Unit Test - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Install pnpm - uses: pnpm/action-setup@v4.1.0 - - - name: Setup node - uses: actions/setup-node@v4 - with: - node-version: lts/* - cache: pnpm - - - name: Install deps - run: pnpm install - - - name: Build - run: pnpm run build - - - name: Test unit - run: pnpm run test - - lint: - timeout-minutes: 10 - runs-on: ubuntu-latest - name: Lint - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Install pnpm - uses: pnpm/action-setup@v4.1.0 - - - name: Setup node - uses: actions/setup-node@v4 - with: - node-version: lts/* - cache: pnpm - - - name: Install deps - run: pnpm install - - - name: Lint - run: pnpm run lint - - - name: Check formatting - run: pnpm prettier --check . - - - name: Typecheck - run: pnpm run typecheck diff --git a/.github/workflows/emoji-helper.yml b/.github/workflows/emoji-helper.yml index 8965a1a..fc682af 100644 --- a/.github/workflows/emoji-helper.yml +++ b/.github/workflows/emoji-helper.yml @@ -8,7 +8,7 @@ jobs: emoji: runs-on: ubuntu-latest steps: - - uses: actions-cool/emoji-helper@v1.0.0 + - uses: actions-cool/emoji-helper@040b841cb25e2e6f50151c73b5ce12fee57019d2 # v1.0.0 with: type: 'release' emoji: '+1, laugh, heart, hooray, rocket, eyes' diff --git a/.github/workflows/issue-reply.yml b/.github/workflows/issue-reply.yml index 2e254d6..443c510 100644 --- a/.github/workflows/issue-reply.yml +++ b/.github/workflows/issue-reply.yml @@ -10,7 +10,7 @@ jobs: steps: - name: help wanted if: github.event.label.name == 'help wanted' - uses: actions-cool/issues-helper@v3 + uses: actions-cool/issues-helper@45d75b6cf72bf4f254be6230cb887ad002702491 # v3.6.3 with: actions: 'create-comment' issue-number: ${{ github.event.issue.number }} @@ -19,7 +19,7 @@ jobs: - name: need reproduction if: github.event.label.name == 'need reproduction' - uses: actions-cool/issues-helper@v3 + uses: actions-cool/issues-helper@45d75b6cf72bf4f254be6230cb887ad002702491 # v3.6.3 with: actions: 'create-comment' issue-number: ${{ github.event.issue.number }} diff --git a/.github/workflows/release-commit.yml b/.github/workflows/release-commit.yml new file mode 100644 index 0000000..b97d07f --- /dev/null +++ b/.github/workflows/release-commit.yml @@ -0,0 +1,12 @@ +name: Publish Any Commit +on: [push, pull_request] + +permissions: {} + +jobs: + release: + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository + uses: sxzz/workflows/.github/workflows/release-commit.yml@v1 + with: + packages: "'./packages/*'" + compact: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ca404bf..6877b39 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ jobs: release: uses: sxzz/workflows/.github/workflows/release.yml@v1 with: - publish: false + publish: true permissions: contents: write id-token: write diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml new file mode 100644 index 0000000..ca17cfd --- /dev/null +++ b/.github/workflows/unit-test.yml @@ -0,0 +1,13 @@ +name: Unit Test + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: {} + +jobs: + unit-test: + uses: sxzz/workflows/.github/workflows/unit-test.yml@v1