Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Dec 9, 2021
1 parent 88b0ecc commit 5844700
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ on:
branches: [main]
pull_request:
branches: [main]
issue_comment:
types: [created]

jobs:
test:
# skip "ci skip" unless a issue comment explictly asks
if: "!contains(github.event.head_commit.message, 'ci skip') || (github.event.issue && startsWith(github.event.issue.comment.body, '/please_release'))"
if: "!contains(github.event.head_commit.message, 'ci skip')"

strategy:
matrix:
Expand Down Expand Up @@ -50,8 +48,7 @@ jobs:
run: npm run test

- name: Release
run: pnpx semantic-release --branches main
if: "contains(github.event.head_commit.message, 'publish release') || github.event.issue"
run: pnpx -y semantic-release --branches main
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

1 comment on commit 5844700

@vercel
Copy link

@vercel vercel bot commented on 5844700 Dec 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.