Skip to content

Commit 39f84a3

Browse files
committed
feat: setting up npm, added npmrc
1 parent 9b0b025 commit 39f84a3

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: npx lerna run build
3737

3838
- name: Publish to npm
39-
run: npx semantic-release
39+
run: npm run release
4040
env:
4141
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4242
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
{
22
"name": "@open-socket/js",
33
"private": false,
4+
"publishConfig": {
5+
"access": "public"
6+
},
47
"scripts": {
58
"lint": "eslint .",
69
"test": "lerna run test",
710
"format": "prettier --write .",
811
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
9-
"build": "lerna run build"
12+
"build": "lerna run build",
13+
"release": "lerna run release"
1014
},
1115
"devDependencies": {
1216
"@babel/preset-env": "^7.25.8",

packages/react/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"build": "npm run clean && npm run build:cjs && npm run build:esm",
99
"build:cjs": "babel src --out-dir dist/cjs --extensions .js,.jsx --presets @babel/preset-env --ignore 'src/**/*.test.js'",
1010
"build:esm": "babel src --out-dir dist/esm --extensions .js,.jsx --presets @babel/preset-env --ignore 'src/**/*.test.js'",
11-
"test": "jest"
11+
"test": "jest",
12+
"release": "semantic-release"
1213
},
1314
"peerDependencies": {
1415
"react": "^17.0.0"

0 commit comments

Comments
 (0)