@@ -12,5 +12,5 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install --frozen-lockfile
|
run: bun install --frozen-lockfile
|
||||||
- name: Lint TypeScript
|
- name: Build
|
||||||
run: bun run lint:tsc
|
run: bun run build
|
||||||
|
|||||||
@@ -21,12 +21,8 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install --frozen-lockfile
|
run: bun install --frozen-lockfile
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: bun run build
|
||||||
cd packages/reffuse
|
|
||||||
bun run build
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: |
|
run: bun run publish
|
||||||
cd packages/reffuse
|
|
||||||
npm publish --access public
|
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|||||||
@@ -18,10 +18,6 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install --frozen-lockfile
|
run: bun install --frozen-lockfile
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: bun run build
|
||||||
cd packages/reffuse
|
|
||||||
bun run build
|
|
||||||
- name: Pack
|
- name: Pack
|
||||||
run: |
|
run: bun run pack
|
||||||
cd packages/reffuse
|
|
||||||
npm pack --dry-run
|
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "turbo build --filter=!@reffuse/example",
|
"build": "turbo build --filter=!@reffuse/example",
|
||||||
"lint:tsc": "turbo lint:tsc",
|
"lint:tsc": "turbo lint:tsc",
|
||||||
|
"pack": "turbo pack --filter=!@reffuse/example",
|
||||||
|
"publish": "turbo publish --filter=!@reffuse/example",
|
||||||
"clean:cache": "rm -f tsconfig.tsbuildinfo",
|
"clean:cache": "rm -f tsconfig.tsbuildinfo",
|
||||||
"clean:dist": "rm -rf dist",
|
"clean:dist": "rm -rf dist",
|
||||||
"clean:node": "rm -rf node_modules"
|
"clean:node": "rm -rf node_modules"
|
||||||
|
|||||||
@@ -24,6 +24,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"lint:tsc": "tsc --noEmit",
|
"lint:tsc": "tsc --noEmit",
|
||||||
|
"pack": "npm pack",
|
||||||
|
"publish": "npm publish --access public",
|
||||||
"clean:cache": "rm -f tsconfig.tsbuildinfo",
|
"clean:cache": "rm -f tsconfig.tsbuildinfo",
|
||||||
"clean:dist": "rm -rf dist",
|
"clean:dist": "rm -rf dist",
|
||||||
"clean:node": "rm -rf node_modules"
|
"clean:node": "rm -rf node_modules"
|
||||||
|
|||||||
@@ -24,6 +24,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"lint:tsc": "tsc --noEmit",
|
"lint:tsc": "tsc --noEmit",
|
||||||
|
"pack": "npm pack",
|
||||||
|
"publish": "npm publish --access public",
|
||||||
"clean:cache": "rm -f tsconfig.tsbuildinfo",
|
"clean:cache": "rm -f tsconfig.tsbuildinfo",
|
||||||
"clean:dist": "rm -rf dist",
|
"clean:dist": "rm -rf dist",
|
||||||
"clean:node": "rm -rf node_modules"
|
"clean:node": "rm -rf node_modules"
|
||||||
|
|||||||
@@ -6,6 +6,12 @@
|
|||||||
"inputs": ["./src/**"],
|
"inputs": ["./src/**"],
|
||||||
"outputs": ["./dist/**"]
|
"outputs": ["./dist/**"]
|
||||||
},
|
},
|
||||||
|
"pack": {
|
||||||
|
"dependsOn": ["^pack"]
|
||||||
|
},
|
||||||
|
"publish": {
|
||||||
|
"dependsOn": ["^publish"]
|
||||||
|
},
|
||||||
"dev": {
|
"dev": {
|
||||||
"persistent": true,
|
"persistent": true,
|
||||||
"cache": false
|
"cache": false
|
||||||
|
|||||||
Reference in New Issue
Block a user