Skip to content

Commit

Permalink
build: Ensure tests are run.
Browse files Browse the repository at this point in the history
  • Loading branch information
nzdjb committed Mar 29, 2023
1 parent 31dbc01 commit 7cdeaa9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Build
on:
push:
pull_request:
types: [opened, reopened, synchronize]
branches: [main]
branches-ignore: [main]
jobs:
build:
runs-on: ubuntu-latest
Expand Down
22 changes: 10 additions & 12 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,25 @@ jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
pull-request-title-pattern: "release${scope}: ${component} ${version}"
labels: |
autorelease: pending
automerge
- uses: actions/checkout@v3
with:
fetch-depth: 0
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
if: ${{ steps.release.outputs.release_created }}
- run: yarn install --frozen-lockfile --check-files
if: ${{ steps.release.outputs.release_created }}
- run: yarn lint
- run: yarn build
if: ${{ steps.release.outputs.release_created }}
- run: yarn test
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
pull-request-title-pattern: "release${scope}: ${component} ${version}"
labels: |
autorelease: pending
automerge
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
Expand Down

0 comments on commit 7cdeaa9

Please sign in to comment.