name: 📦 NPM Push on: workflow_dispatch: workflow_call: permissions: actions: write checks: write contents: write pull-requests: write packages: write env: BRANCH_NAME: ${{ github.event.pull_request.head.sha || github.head_ref || github.ref_name }} NODE_VERSION: 20 jobs: publish: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 1 ref: ${{ github.event.pull_request.head.sha || github.ref }} - name: Setup Node & Cache uses: actions/setup-node@v4 with: cache: "npm" cache-dependency-path: package-lock.json - run: npm ci - uses: JS-DevTools/npm-publish@v3 with: token: ${{ secrets.NPM_I2_TOKEN }}