Skip to content

Commit dfe3af4

Browse files
committed
[CI/CD] npmrc
1 parent 448a936 commit dfe3af4

File tree

7 files changed

+96
-166
lines changed

7 files changed

+96
-166
lines changed

.github/workflows/node.js.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ jobs:
4141
run: |
4242
yarn workspaces foreach --all version patch
4343
git push --follow-tags
44-
# env:
45-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
45+
- name: Setup .npmrc for authentication
46+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
4647

4748
- name: Publish to npm (only on main branch)
4849
if: github.ref == 'refs/heads/main'
49-
run: yarn workspaces foreach --all --topological --no-private npm publish --access public
50+
run: yarn workspaces foreach --recursive --topological --no-private npm publish --access public
5051
env:
5152
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@
66
"version": "0.1.3",
77
"packageManager": "yarn@4.5.3",
88
"scripts": {
9-
"build": "turbo run build",
10-
"dev": "turbo run dev",
11-
"test": "turbo run test"
9+
"build": "yarn workspaces foreach --all npm run build",
10+
"test": "yarn workspaces foreach --all npm run test"
1211
},
1312
"devDependencies": {
14-
"turbo": "^2.4.0",
1513
"typescript": "^5.7.3"
1614
}
1715
}

packages/docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@packages/docs",
33
"version": "0.1.3",
4+
"private": true,
45
"dependencies": {
56
"spreadsheet-orm": "workspace:*"
67
}

packages/main/.npmignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ src/
2020
.yarnrc.yml
2121

2222
# 기타
23-
yarn.lock
23+
yarn.lock
24+
.npmrc

packages/main/esbuild.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ esbuild.build({
1010
loader: {
1111
'.ts': 'ts', // TypeScript 파일 로드
1212
},
13-
external: ['https',"googleapis", "gaxios"], // ✅ Node.js 내장 모듈을 번들에서 제외
13+
external: ["googleapis", "gaxios"], // ✅ Node.js 내장 모듈을 번들에서 제외
1414
})

packages/test/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@spreadsheet-orm/test",
33
"version": "0.1.3",
4+
"private": true,
45
"description": "Test suite for spreadsheet-orm",
56
"scripts": {
67
"test": "jest",

0 commit comments

Comments
 (0)