name: publish on: push: branches: - "main" workflow_dispatch: permissions: id-token: write # Required for OIDC contents: write concurrency: group: ${{ github.workflow }}-${{ github.ref }} jobs: publish: runs-on: ubuntu-latest if: "contains(github.event.head_commit.message, 'chore: version packages')" steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - uses: ./.github/actions/install-node - run: npx lerna publish from-package --yes - name: Create GitHub Release run: | version=$(node -p "require('./packages/connect/package.json').version") notes=$(awk '/^## /{if(n++)exit;next}n' packages/connect/CHANGELOG.md) gh release create "v${version}" --notes "$notes" --target "$GITHUB_SHA" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}