PHP 8.2.30
Preview: package-publish.yml Size: 1.68 KB
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/flutterwave-node-v3/.github/workflows/package-publish.yml

name: Publish changes to Node package manager

on:
  release:
    types: [created]

permissions:
  id-token: write
  contents: read

jobs:
  check-readme-and-changelog:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Check for README and CHANGELOG changes
        run: |
          if ! git diff --quiet HEAD~ HEAD -- README.md CHANGELOG.md; then
            echo "README and/or CHANGELOG have been modified. Proceeding with deployment."
          else
            echo "README and/or CHANGELOG have not been modified. Terminating deployment."
            exit 1
          fi

      - name: push build status to Slack
        uses: 8398a7/action-slack@v3
        with:
          status: ${{ job.status }}
          fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
        env:
          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
        if: always()

  publish:
    needs: check-readme-and-changelog
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Setup Node Engine
        uses: actions/setup-node@v4
        with:
          node-version: 24
          registry-url: https://registry.npmjs.org/

      - run: npm publish
        env:
          NODE_AUTH_TOKEN: ${{secrets.npm_token}}

      - name: Send Slack Notification
        uses: 8398a7/action-slack@v3
        with:
          status: ${{ job.status }}
          fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
        env:
          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
          MATRIX_CONTEXT: ${{ toJson(matrix) }}
        if: always()

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
1.23 KB lrw-r--r-- 2026-02-21 00:54:24
Edit Download
1.68 KB lrw-r--r-- 2026-02-21 00:54:24
Edit Download
732 B lrw-r--r-- 2026-02-21 00:54:24
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).