From e84d036fabac19ce4bec17035db8ac2c52088094 Mon Sep 17 00:00:00 2001 From: Sam Chung Date: Thu, 31 Aug 2023 15:53:42 +1000 Subject: [PATCH] Update release script (#6) --- .github/workflows/release.yaml | 2 +- README.md | 5 +++++ package.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 53f8328..db91765 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -35,7 +35,7 @@ jobs: - name: Release uses: changesets/action@v1 with: - publish: pnpm build && pnpm release + publish: pnpm release version: pnpm changeset-version env: GITHUB_TOKEN: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN }} diff --git a/README.md b/README.md index 7515354..39bbf6d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # mock-builder +[![npm package](https://img.shields.io/npm/v/mock-builder)](https://www.npmjs.com/package/mock-builder) +[![Node.js version](https://img.shields.io/badge/node-%3E%3D%2018.12-brightgreen)](https://nodejs.org/en/) +[![GitHub Release](https://github.com/seek-oss/mock-builder/workflows/Release/badge.svg?branch=master)](https://github.com/seek-oss/mock-builder/actions?query=workflow%3ARelease) +[![GitHub Test](https://github.com/seek-oss/mock-builder/workflows/Test/badge.svg?branch=master)](https://github.com/seek-oss/mock-builder/actions?query=workflow%3ATest) + Create reusable mocks using the builder pattern in Typescript ## Installation diff --git a/package.json b/package.json index 93a17ce..71eecac 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "test": "skuba test --coverage", "test:watch": "skuba test --watch", "preinstall": "npx only-allow pnpm", - "release": "changeset publish", + "release": "pnpm build && changeset publish", "changeset-version": "changeset version && prettier --write ." }, "devDependencies": {