Skip to content

Commit

Permalink
fix: publish using pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
albertolerda committed Oct 9, 2023
1 parent db4ce55 commit 943f033
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ jobs:
run: pnpm build-all
- name: Release
run: |
git config --global user.email "[email protected]" && 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 }}

20 changes: 11 additions & 9 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -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"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions pkg/core/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion pkg/deps/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slangroom/deps",
"version": "1.0.3",
"version": "1.1.0",
"dependencies": {
"chevrotain": "^10.5.0",
"zenroom": "^3.10.0"
Expand Down
2 changes: 1 addition & 1 deletion pkg/http/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slangroom/http",
"version": "1.0.0",
"version": "1.1.0",
"dependencies": {
"@slangroom/core": "workspace:*",
"@slangroom/deps": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion pkg/ignored/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slangroom/ignored",
"version": "1.0.3",
"version": "1.1.0",
"dependencies": {
"@slangroom/deps": "workspace:*",
"@slangroom/shared": "workspace:*"
Expand Down
2 changes: 1 addition & 1 deletion pkg/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slangroom/shared",
"version": "1.0.5",
"version": "1.1.0",
"dependencies": {
"@slangroom/deps": "workspace:*"
},
Expand Down

0 comments on commit 943f033

Please sign in to comment.