Skip to content

Commit 63a5948

Browse files
committed
ci: semantic-release on alpha branch
1 parent 74905e0 commit 63a5948

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, alpha]
66
pull_request:
77
branches: [main]
88

@@ -50,7 +50,7 @@ jobs:
5050

5151
release:
5252
runs-on: ubuntu-latest
53-
needs: ['test']
53+
needs: ["test"]
5454
if: "!contains(github.event.head_commit.message, 'skip-release') && !contains(github.event.head_commit.message, 'skip-ci') && github.event_name != 'pull_request'"
5555
steps:
5656
- uses: actions/checkout@v3
@@ -70,7 +70,7 @@ jobs:
7070
${{ runner.os }}-
7171
- run: npm i -g pnpm
7272
- run: pnpm i
73-
- run: pnpx semantic-release --branches main
73+
- run: pnpm dlx semantic-release
7474
env:
7575
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7676
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"scripts": {
1919
"build": "tsup src/index.ts",
2020
"dev": "vite",
21-
"test": "vitest run",
21+
"test": "vitest run --passWithNoTests",
2222
"prepublishOnly": "pnpm run build"
2323
},
2424
"license": "MIT",

0 commit comments

Comments
 (0)