diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml deleted file mode 100644 index 14b6694..0000000 --- a/.github/workflows/audit.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: audit - -on: - push: - branches: - - main - workflow_call: - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Set Node.js 20.x - uses: actions/setup-node@v3 - with: - node-version: 20.x - - - name: Install Dependencies - run: yarn install --frozen-lockfile - - - name: Build - run: yarn build - - - name: Upload build artifacts - uses: actions/upload-artifact@v4 - with: - name: build - path: ./dist - test: - runs-on: ubuntu-latest - permissions: - checks: write - pull-requests: write - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Set Node.js 20.x - uses: actions/setup-node@v3 - with: - node-version: 20.x - - - name: Install Dependencies - run: yarn install --frozen-lockfile - - - name: Test - run: yarn test - - - name: Test Report - uses: EnricoMi/publish-unit-test-result-action@v2 - with: - files: test-report.xml - if: always() diff --git a/.github/workflows/release.yml b/.github/workflows/push.yml similarity index 83% rename from .github/workflows/release.yml rename to .github/workflows/push.yml index 9e7f3e5..0e050f8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/push.yml @@ -1,18 +1,63 @@ -name: release +name: push on: push: branches: - main - pull_request: - branches: + pull_request: + branches: - main jobs: - audit: - uses: ./.github/workflows/audit.yml - name: audit - + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set Node.js 20.x + uses: actions/setup-node@v3 + with: + node-version: 20.x + + - name: Install Dependencies + run: yarn install --frozen-lockfile + + - name: Build + run: yarn build + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: build + path: ./dist + + test: + runs-on: ubuntu-latest + permissions: + checks: write + pull-requests: write + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set Node.js 20.x + uses: actions/setup-node@v3 + with: + node-version: 20.x + + - name: Install Dependencies + run: yarn install --frozen-lockfile + + - name: Test + run: yarn test + + - name: Test Report + uses: EnricoMi/publish-unit-test-result-action@v2 + with: + files: test-report.xml + if: always() + pr-prerelease: if: github.event_name == 'pull_request' && github.event.action != 'closed' runs-on: ubuntu-latest diff --git a/package.json b/package.json index 9ab82d3..c4206b2 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,10 @@ "description": "An opinionated, type-safe http library build around Express and Zod", "main": "./dist/main.js", "types": "./dist/main.d.ts", - "files": ["./dist"], + "files": [ + "./dist", + "./readme.md" + ], "type": "module", "author": "Evert De Spiegeleer", "license": "MIT",