name: Reusable container push workflow on: workflow_call: env: REPO: ${{ github.repository }} jobs: push-npm: runs-on: ubuntu-22.04 permissions: # Give the default GITHUB_TOKEN write permission to commit and push the # added or changed files to the repository. contents: write steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 22 registry-url: ${{ vars.NPM_REGISTRY }} token: ${{ secrets.NPM_TOKEN }} - name: Install npm dependencies run: | npm install -g pnpm pnpm install - run: pnpm build_npm - name: Increment package version and push env: GITHUB_TOKEN: ${{ github.token }} run: | git config --global user.name 'bot-build' git config --global user.email 'techbots+build@gmetri.com' export N=`node -p require\(\'./package.json\'\).name` && echo $N pnpm version patch --message "v%s: $N [CI SKIP]" npm publish git push origin git push --tags origin