Skip to content

Commit

Permalink
Merge pull request #34 from chyzwar/test
Browse files Browse the repository at this point in the history
chore(): added access=public, docs on actions
  • Loading branch information
chyzwar authored Oct 2, 2023
2 parents 7833a48 + b0419b8 commit 75e0d7b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@ name: Publish

# Inspired by:
# https://dev.to/xcanchal/automatic-versioning-in-a-lerna-monorepo-using-github-actions-4hij
# Problems:
# I tried to use github registry to publish public packages,
# but packages in github require auth to insall even if package is public.
#
# Lernau use npm for publish, even if npm client is set to yarn
# Publish only use npm as client and it ignore any config in yarnrc and npmClient settings
#
# Npm token will not be configured without registry-url set in setup-node
# To configure authToken for npm both registry-url and secret is needed.
#
# When publishing public package, publishConfig.access need to be stetup
#

on:
pull_request:
Expand Down Expand Up @@ -48,6 +60,7 @@ jobs:
echo "Version"
yarn dlx lerna version \
--conventional-commits \
--no-private \
--yes
echo "Publish"
Expand Down
3 changes: 3 additions & 0 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"keywords": [
"eslint"
],
"publishConfig": {
"access": "public"
},
"dependencies": {
"@chyzwar/tsconfig": "^0.2.12",
"@typescript-eslint/eslint-plugin": "^6.7.3",
Expand Down
3 changes: 3 additions & 0 deletions packages/runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"bin": "./lib/runner.js",
"description": "Simple task runner",
"sideEffects": false,
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsc --build",
"build:watch": "tsc --build --watch",
Expand Down
4 changes: 3 additions & 1 deletion packages/tsconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "0.2.12",
"author": "chyzwar",
"license": "MIT",
"main": "./node.js",
"engines": {
"node": "18.x.x",
"yarn": "3.x.x"
Expand All @@ -12,6 +11,9 @@
"type": "git",
"url": "https://github.com/chyzwar/common"
},
"publishConfig": {
"access": "public"
},
"description": "Typescript configs",
"keywords": [
"typescript preset"
Expand Down

0 comments on commit 75e0d7b

Please sign in to comment.