Skip to content

Commit

Permalink
ci: semantic-release on alpha branch
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenOutman committed Dec 9, 2022
1 parent 74905e0 commit 63a5948
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
push:
branches: [main]
branches: [main, alpha]
pull_request:
branches: [main]

Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:

release:
runs-on: ubuntu-latest
needs: ['test']
needs: ["test"]
if: "!contains(github.event.head_commit.message, 'skip-release') && !contains(github.event.head_commit.message, 'skip-ci') && github.event_name != 'pull_request'"
steps:
- uses: actions/checkout@v3
Expand All @@ -70,7 +70,7 @@ jobs:
${{ runner.os }}-
- run: npm i -g pnpm
- run: pnpm i
- run: pnpx semantic-release --branches main
- run: pnpm dlx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"scripts": {
"build": "tsup src/index.ts",
"dev": "vite",
"test": "vitest run",
"test": "vitest run --passWithNoTests",
"prepublishOnly": "pnpm run build"
},
"license": "MIT",
Expand Down

0 comments on commit 63a5948

Please sign in to comment.