Skip to content

Commit ffd1149

Browse files
committed
ci: update publish script
1 parent 74b2f74 commit ffd1149

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,26 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v6
1717

18+
- name: Setup pnpm
19+
uses: pnpm/action-setup@v4
20+
1821
- name: Setup Node.js
1922
uses: actions/setup-node@v6
2023
with:
2124
node-version: "24"
22-
cache: "npm"
25+
cache: "pnpm"
2326
registry-url: "https://registry.npmjs.org"
2427

2528
- name: Install dependencies
26-
run: npm ci
29+
run: pnpm install
2730

2831
- name: Build
29-
run: npm run build
32+
run: pnpm build
3033

3134
- name: Determine npm tag
3235
id: npm-tag
3336
run: |
34-
VERSION=$(node -p "require('./package.json').version")
37+
VERSION=$(node -p "require('./packages/router/package.json').version")
3538
if [[ "$VERSION" == *"-"* ]]; then
3639
# Prerelease version - extract tag (e.g., "alpha" from "0.0.1-alpha.0")
3740
TAG=$(echo "$VERSION" | sed 's/.*-\([a-zA-Z]*\).*/\1/')
@@ -41,4 +44,4 @@ jobs:
4144
fi
4245
4346
- name: Publish
44-
run: npm publish --access public --tag ${{ steps.npm-tag.outputs.tag }}
47+
run: pnpm --filter @funstack/router publish --access public --tag ${{ steps.npm-tag.outputs.tag }} --no-git-checks

0 commit comments

Comments
 (0)