From 88d55623229311aa4c1a772addacb2769143970c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20N=C3=B8rskov?= Date: Sun, 14 Apr 2024 15:53:11 +0200 Subject: [PATCH] chore: update release workflow --- .github/workflows/release.yaml | 4 +++- packages/eslint-config/package.json | 3 +++ packages/prettier-config/package.json | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index bbeaf4a..392414f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -28,9 +28,11 @@ jobs: - name: Install Dependencies run: pnpm install - - name: Create Release Pull Request or Publish to npm + - name: Publish to npmjs id: changesets uses: changesets/action@v1 + with: + publish: pnpm run release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 5167acd..e3e2f16 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -6,6 +6,9 @@ "url": "https://github.com/rhnorskov/config" }, "main": "index.js", + "scripts": { + "release": "npx changesets publish" + }, "peerDependencies": { "@typescript-eslint/eslint-plugin": "^5.45.0", "@typescript-eslint/parser": "^5.45.0", diff --git a/packages/prettier-config/package.json b/packages/prettier-config/package.json index 27b52de..e9c3f6d 100644 --- a/packages/prettier-config/package.json +++ b/packages/prettier-config/package.json @@ -6,6 +6,9 @@ "url": "https://github.com/rhnorskov/config" }, "main": "index.js", + "scripts": { + "release": "npx changesets publish" + }, "peerDependencies": { "prettier": "^2.8.0" }