diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..90416aa --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,29 @@ +version: 2.1 + +orbs: + release-management: salesforce/npm-release-management@4 + +workflows: + version: 2 + release: + jobs: + - release-management/validate-pr: + filters: + branches: + ignore: main + - release-management/release-package: + github-release: true + filters: + branches: + only: main + dependabot-automerge: + triggers: + - schedule: + cron: '0 2,5,8,11 * * *' + filters: + branches: + only: + - main + jobs: + - release-management/dependabot-automerge + diff --git a/.github/workflows/slackprnotification.yml b/.github/workflows/slackprnotification.yml new file mode 100644 index 0000000..7ea0796 --- /dev/null +++ b/.github/workflows/slackprnotification.yml @@ -0,0 +1,23 @@ +name: Slack pull request open notification + +on: + pull_request: + types: [opened, reopened] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Notify slack pr open + env: + WEBHOOK_URL : ${{ secrets.CLI_TEAM_SLACK_WEBHOOK_URL }} + PULL_REQUEST_AUTHOR_ICON_URL : ${{ github.event.pull_request.user.avatar_url }} + PULL_REQUEST_AUTHOR_NAME : ${{ github.event.pull_request.user.login }} + PULL_REQUEST_AUTHOR_PROFILE_URL: ${{ github.event.pull_request.user.html_url }} + PULL_REQUEST_BASE_BRANCH_NAME : ${{ github.event.pull_request.base.ref }} + PULL_REQUEST_COMPARE_BRANCH_NAME : ${{ github.event.pull_request.head.ref }} + PULL_REQUEST_NUMBER : ${{ github.event.pull_request.number }} + PULL_REQUEST_REPO: ${{ github.event.pull_request.head.repo.name }} + PULL_REQUEST_TITLE : ${{ github.event.pull_request.title }} + PULL_REQUEST_URL : ${{ github.event.pull_request.html_url }} + uses: salesforcecli/pr-notification-action@main diff --git a/package.json b/package.json index 8a923f6..900ef08 100644 --- a/package.json +++ b/package.json @@ -33,5 +33,8 @@ }, "publishConfig": { "access": "public" + }, + "scripts": { + "build": "echo 'no build necessary'" } }