diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index a772cd9..571fe37 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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 diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index b7a2fae..87f4e2b 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -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 }}