diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 67d0e58..561c359 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -3,7 +3,7 @@ on: push: branches: - main - + jobs: build: runs-on: ubuntu-latest @@ -12,7 +12,7 @@ jobs: # Setup .npmrc file to publish to npm - uses: actions/setup-node@v3 with: - node-version: '16.x' + node-version: '18.x' registry-url: 'https://registry.npmjs.org' - run: npm ci - run: npm publish diff --git a/.github/workflows/failureNotifications.yml b/.github/workflows/failureNotifications.yml deleted file mode 100644 index 6b4118f..0000000 --- a/.github/workflows/failureNotifications.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: failureNotifications - -on: - workflow_run: - workflows: - - version, tag and github release - - publish - types: - - completed - -jobs: - failure-notify: - runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'failure' }} - steps: - - name: Announce Failure - id: slack - uses: slackapi/slack-github-action@v1.21.0 - env: - # for non-CLI-team-owned plugins, you can send this anywhere you like - SLACK_WEBHOOK_URL: ${{ secrets.CLI_ALERTS_SLACK_WEBHOOK }} - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK - with: - payload: | - { - "text": "${{ github.event.workflow_run.name }} failed: ${{ github.event.workflow_run.repository.name }}", - "blocks": [ - { - "type": "header", - "text": { - "type": "plain_text", - "text": ":bh-alert: ${{ github.event.workflow_run.name }} failed: ${{ github.event.workflow_run.repository.name }} :bh-alert:" - } - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "Repo: ${{ github.event.workflow_run.repository.html_url }}\nWorkflow name: `${{ github.event.workflow_run.name }}`\nJob url: ${{ github.event.workflow_run.html_url }}" - } - } - ] - } diff --git a/.github/workflows/manualRelease.yml b/.github/workflows/manualRelease.yml deleted file mode 100644 index 8ceb52c..0000000 --- a/.github/workflows/manualRelease.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: manual release - -on: - workflow_dispatch: - -jobs: - release: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - token: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }} - - name: Conventional Changelog Action - id: changelog - uses: TriPSs/conventional-changelog-action@d360fad3a42feca6462f72c97c165d60a02d4bf2 - # overriding some of the basic behaviors to just get the changelog - with: - git-user-name: svc-cli-bot - git-user-email: svc_cli_bot@salesforce.com - github-token: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }} - output-file: false - # always do the release, even if there are no semantic commits - skip-on-empty: false - tag-prefix: '' - - uses: notiz-dev/github-action-json-property@2192e246737701f108a4571462b76c75e7376216 - id: packageVersion - with: - path: 'package.json' - prop_path: 'version' - - name: Create Github Release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }} - with: - tag_name: ${{ steps.packageVersion.outputs.prop }} - release_name: ${{ steps.packageVersion.outputs.prop }} diff --git a/.github/workflows/notify-slack-on-pr-open.yml b/.github/workflows/notify-slack-on-pr-open.yml deleted file mode 100644 index 13b5c9e..0000000 --- a/.github/workflows/notify-slack-on-pr-open.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Pull Request Slack Notification - -on: - pull_request: - types: [opened, reopened] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Notify Slack on 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/github-workflows/.github/actions/prNotification@main diff --git a/.github/workflows/onPushToMain.yml b/.github/workflows/onPushToMain.yml deleted file mode 100644 index 61eda8a..0000000 --- a/.github/workflows/onPushToMain.yml +++ /dev/null @@ -1,18 +0,0 @@ -# test -name: version, tag and github release - -on: - push: - branches: [main] - -jobs: - release: - uses: oclif/github-workflows/.github/workflows/githubRelease.yml@main - secrets: inherit - - # most repos won't use this - # depends on previous job to avoid git collisions, not for any functionality reason - # docs: - # uses: salesforcecli/github-workflows/.github/workflows/publishTypedoc.yml@main - # secrets: inherit - # needs: release diff --git a/.github/workflows/onRelease.yml b/.github/workflows/onRelease.yml deleted file mode 100644 index 8876db4..0000000 --- a/.github/workflows/onRelease.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: publish - -on: - release: - types: [released] - # support manual release in case something goes wrong and needs to be repeated or tested - workflow_dispatch: - inputs: - tag: - description: tag that needs to publish - type: string - required: true -jobs: - npm: - uses: oclif/github-workflows/.github/workflows/npmPublish.yml@main - with: - tag: latest - githubTag: ${{ github.event.release.tag_name || inputs.tag }} - secrets: inherit diff --git a/.github/workflows/publish copy.yaml b/.github/workflows/publish copy.yaml deleted file mode 100644 index c2d7d33..0000000 --- a/.github/workflows/publish copy.yaml +++ /dev/null @@ -1,30 +0,0 @@ -name: Publish to NPM - -on: - push: - branches: - - main - -jobs: - publish: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: '14' - - - name: Install dependencies - run: npm ci - - - name: Build package - run: npm run build - - - name: Publish to NPM - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml deleted file mode 100644 index feedfd1..0000000 --- a/.github/workflows/publish.yaml +++ /dev/null @@ -1,30 +0,0 @@ -name: Publish to NPM - -on: - push: - branches: - - main - -jobs: - publish: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: '14' - - - name: Install dependencies - run: npm ci - - - name: Build package - run: npm run build - - - name: Publish to NPM - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}