From 201aa99e27f1abdddbb93ef9f4aba19dbe000cd7 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Mon, 16 Jan 2023 03:36:55 -0500 Subject: [PATCH] Add a yarn release command --- .changeset/forty-students-deliver.md | 5 +++++ .github/workflows/publish.yml | 2 +- package.json | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/forty-students-deliver.md diff --git a/.changeset/forty-students-deliver.md b/.changeset/forty-students-deliver.md new file mode 100644 index 0000000..b9d7247 --- /dev/null +++ b/.changeset/forty-students-deliver.md @@ -0,0 +1,5 @@ +--- +"sveltekit-playwright-fetch-mock": patch +--- + +Add a yarn release command diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bac2d81..63e4886 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,7 +21,7 @@ jobs: id: changesets uses: changesets/action@v1 with: - publish: yarn build && yarn changesets publish + publish: yarn release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 543f1d6..79cca61 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "scripts": { "build": "tsup index.ts --format cjs,esm --dts", + "release": "tsup index.ts --format cjs,esm --dts && changeset publish", "lint": "tsc" }, "devDependencies": {