From 7e31602a76726a1ab8d5d1e644680c7312abd9ff Mon Sep 17 00:00:00 2001 From: Chanhee Lee Date: Wed, 7 Feb 2024 23:39:48 +0900 Subject: [PATCH] Fix changeset workflow --- .github/workflows/release.yml | 3 ++- .yarnrc.yml | 4 ++++ package.json | 3 ++- packages/pothos-plugin-effect/package.json | 3 ++- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index de17f21..43ed48c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,6 +32,7 @@ jobs: uses: changesets/action@v1 with: version: yarn changeset version + publish: yarn publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.yarnrc.yml b/.yarnrc.yml index b91d4f2..47c7d0b 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1,2 +1,6 @@ nmMode: hardlinks-global nodeLinker: node-modules + +npmPublishRegistry: https://registry.npmjs.com +npmAuthToken: "${NPM_TOKEN:-}" +npmAlwaysAuth: false \ No newline at end of file diff --git a/package.json b/package.json index 817945a..dd0070c 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "license": "MIT", "scripts": { "test": "yarn workspaces foreach -A run test", - "build": "yarn workspaces foreach -A run build" + "build": "yarn workspaces foreach -A run build", + "publish": "yarn workspaces foreach -A run publish" }, "devDependencies": { "@biomejs/biome": "1.5.3", diff --git a/packages/pothos-plugin-effect/package.json b/packages/pothos-plugin-effect/package.json index 67cc19f..bca2225 100644 --- a/packages/pothos-plugin-effect/package.json +++ b/packages/pothos-plugin-effect/package.json @@ -25,7 +25,8 @@ "test": "vitest", "build": "nanobundle build", "postinstall": "yarn prisma generate", - "prepack": "yarn build" + "prepack": "yarn build", + "publish": "yarn npm publish" }, "keywords": [ "effect",