From ea8bbbd09ece752d71e7733a8eeb6010e85c42cd Mon Sep 17 00:00:00 2001 From: Joram van den Boezem Date: Thu, 24 Nov 2022 22:39:43 +0000 Subject: [PATCH] fix: attempt to publish with yarn --- .releaserc.json | 9 ++------- .yarnrc.yml | 3 +++ package.json | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.releaserc.json b/.releaserc.json index 286424c5..d7b9249b 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -4,16 +4,11 @@ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", "@semantic-release/changelog", - [ - "@semantic-release/npm", - { - "npmPublish": false - } - ], + "@semantic-release/npm", [ "@semantic-release/exec", { - "publishCmd": "yarn workspaces foreach npm publish" + "publishCmd": "yarn workspaces foreach --topological --verbose --no-private npm publish 1>&2 && echo '{\"name\": \"npm package\", \"url\": \"https://www.npmjs.com/package/moker/v/${nextRelease.version}\"}'" } ], "@semantic-release/github", diff --git a/.yarnrc.yml b/.yarnrc.yml index 7d54a306..73daf86e 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -11,3 +11,6 @@ plugins: spec: "@yarnpkg/plugin-version" yarnPath: .yarn/releases/yarn-3.2.4.cjs + +npmAuthToken: ${NPM_TOKEN-} +npmPublishAccess: "public" diff --git a/package.json b/package.json index 7f0e988d..69e98759 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mokr/root", - "version": "0.0.0", + "private": true, "description": "Moker root package (dummy)", "author": "joram@vandenboezem.nl", "repository": "https://github.com/hongaar/moker",