From 943f033715b87a84112aa56c3519079ec98c0340 Mon Sep 17 00:00:00 2001 From: Alberto Lerda Date: Mon, 9 Oct 2023 17:49:14 +0100 Subject: [PATCH] fix: publish using pnpm --- .github/workflows/ci.yml | 2 ++ lerna.json | 20 +++++++++++--------- package.json | 2 +- pkg/core/package.json | 6 +++--- pkg/deps/package.json | 2 +- pkg/http/package.json | 2 +- pkg/ignored/package.json | 2 +- pkg/shared/package.json | 2 +- 8 files changed, 21 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d452508..1a3c3039 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,9 +53,11 @@ jobs: run: pnpm build-all - name: Release run: | + git config --global user.email "dev@dyne.org" && git config --global user.name "Dev Dyne.org" echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > .npmrc pnpm whoami pnpm publish:ci env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/lerna.json b/lerna.json index 5a96bdae..76008f50 100644 --- a/lerna.json +++ b/lerna.json @@ -1,11 +1,13 @@ { - "$schema": "node_modules/@lerna-lite/cli/schemas/lerna-schema.json", - "version": "0.0.0", - "command": { - "publish": { - "conventionalCommits": true - } - }, - "packages": ["pkg/*"], - "npmClient": "pnpm" + "$schema": "node_modules/@lerna-lite/cli/schemas/lerna-schema.json", + "version": "1.1.0", + "command": { + "publish": { + "conventionalCommits": true + } + }, + "packages": [ + "pkg/*" + ], + "npmClient": "pnpm" } diff --git a/package.json b/package.json index f4eef34b..2e1cfa90 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "build:esm": "pnpm -F @slangroom/* exec tsc --outdir build/esm --module node16", "build-all": "pnpm build", "cjs-fixup": "pnpm -F @slangroom/* exec sh -c \"echo '{\\\"type\\\":\\\"commonjs\\\"}' >build/cjs/package.json\"", - "publish:ci": "lerna publish --no-git-tag-version --yes" + "publish:ci": "lerna version --no-changelog --conventional-commits --yes && pnpm publish -r --no-git-checks" }, "devDependencies": { "@lerna-lite/publish": "^2.5.1", diff --git a/pkg/core/package.json b/pkg/core/package.json index 9153fa50..3854e45a 100644 --- a/pkg/core/package.json +++ b/pkg/core/package.json @@ -1,10 +1,10 @@ { "name": "@slangroom/core", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { "@slangroom/deps": "workspace:*", - "@slangroom/shared": "workspace:*", - "@slangroom/ignored": "workspace:*" + "@slangroom/ignored": "workspace:*", + "@slangroom/shared": "workspace:*" }, "repository": "https://github.com/dyne/slangroom", "license": "AGPL-3.0-only", diff --git a/pkg/deps/package.json b/pkg/deps/package.json index 3ba7a55d..cbcf52d5 100644 --- a/pkg/deps/package.json +++ b/pkg/deps/package.json @@ -1,6 +1,6 @@ { "name": "@slangroom/deps", - "version": "1.0.3", + "version": "1.1.0", "dependencies": { "chevrotain": "^10.5.0", "zenroom": "^3.10.0" diff --git a/pkg/http/package.json b/pkg/http/package.json index 18052dd8..6fe34a35 100644 --- a/pkg/http/package.json +++ b/pkg/http/package.json @@ -1,6 +1,6 @@ { "name": "@slangroom/http", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { "@slangroom/core": "workspace:*", "@slangroom/deps": "workspace:*", diff --git a/pkg/ignored/package.json b/pkg/ignored/package.json index 5cf5dff3..ea26c8f2 100644 --- a/pkg/ignored/package.json +++ b/pkg/ignored/package.json @@ -1,6 +1,6 @@ { "name": "@slangroom/ignored", - "version": "1.0.3", + "version": "1.1.0", "dependencies": { "@slangroom/deps": "workspace:*", "@slangroom/shared": "workspace:*" diff --git a/pkg/shared/package.json b/pkg/shared/package.json index ec0abbef..f5b8a80f 100644 --- a/pkg/shared/package.json +++ b/pkg/shared/package.json @@ -1,6 +1,6 @@ { "name": "@slangroom/shared", - "version": "1.0.5", + "version": "1.1.0", "dependencies": { "@slangroom/deps": "workspace:*" },