Skip to content

fix: simplify npm-publisher as synchronous reusable workflow #47

fix: simplify npm-publisher as synchronous reusable workflow

fix: simplify npm-publisher as synchronous reusable workflow #47

Workflow file for this run

---
name: Main
on:
push:
branches:
- main
paths-ignore:
- "**.md"
permissions:
contents: 'read'
id-token: 'write'
jobs:
build:
uses: ./.github/workflows/reusable-build.yml
secrets: inherit
prepare-release:
needs: [build]
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
prs_created: ${{ steps.release.outputs.prs_created }}
version: ${{ steps.release.outputs.version }}
permissions:
contents: write
pull-requests: write
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.RELEASE_PAT }}
release-type: node
release:
needs: [prepare-release]
if: ${{ needs.prepare-release.outputs.release_created == 'true' }}
uses: ./.github/workflows/npm-publisher.yml
with:
action: publish
version-tag: latest-rc
ref: ${{ github.sha }}
test-release:
needs: [prepare-release, release]
if: ${{ needs.prepare-release.outputs.release_created == 'true' }}
uses: ./.github/workflows/run-e2e-tests.yml
with:
channel: ${{ needs.prepare-release.outputs.version }}