chore: remove v1-main references #31
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Disable workflow until releasing v2 | |
| # name: publish | |
| # on: | |
| # release: | |
| # types: [published] # Trigger when a GitHub Release is published | |
| # env: | |
| # DOCS_REPO: SAP/ai-sdk | |
| # NODE_VERSION: 20 | |
| # jobs: | |
| # check-release-notes-pr: | |
| # name: Check Release Notes PR Status | |
| # runs-on: ubuntu-latest | |
| # outputs: | |
| # release_notes_branch: ${{ steps.determine-branch-name.outputs.release_notes_branch }} | |
| # is_merged: ${{ steps.check_pr_status.outputs.merged }} | |
| # steps: | |
| # - uses: sap/ai-sdk-js/.github/actions/setup@main | |
| # with: | |
| # node-version: ${{ env.NODE_VERSION }} | |
| # - name: Determine Docs PR Branch Name | |
| # id: determine-branch-name | |
| # run: | | |
| # VERSION=$(pnpm node -p "require('./package.json').version") | |
| # echo "Using version: $VERSION" | |
| # BRANCH_NAME="update-release-notes-js-$VERSION" | |
| # echo "release_notes_branch=$BRANCH_NAME" >> "$GITHUB_OUTPUT" | |
| # - name: Check PR Status (Exists, Merged) | |
| # id: check_pr_status | |
| # run: | | |
| # BRANCH_NAME="${{ steps.determine-branch-name.outputs.release_notes_branch }}" | |
| # echo "Checking status for PR associated with branch: $BRANCH_NAME" | |
| # # Get merged status. If gh pr view fails (e.g., PR not found), the step will fail. | |
| # MERGED_OUTPUT=$(gh pr view "$BRANCH_NAME" --repo "${{ env.DOCS_REPO }}" --json state --jq '.state == "MERGED" | tostring') | |
| # # This part only runs if the above command succeeded | |
| # echo "PR found. Is Merged: $MERGED_OUTPUT" | |
| # echo "merged=$MERGED_OUTPUT" >> "$GITHUB_OUTPUT" | |
| # env: | |
| # GH_TOKEN: ${{ secrets.GH_CLOUD_SDK_JS_ADMIN_WRITE_TOKEN }} | |
| # - name: 'Check Whether Release Notes PR Can Be Merged' | |
| # if: steps.check_pr_status.outputs.merged == 'false' | |
| # uses: ./.github/actions/pr-is-mergeable | |
| # with: | |
| # pr-ref: ${{ steps.determine-branch-name.outputs.release_notes_branch }} | |
| # repo: ${{ env.DOCS_REPO }} | |
| # token: ${{ secrets.GH_CLOUD_SDK_JS_ADMIN_WRITE_TOKEN }} | |
| # excluded-check-runs: | | |
| # { | |
| # \"Build Cloud SDK Documentation\": [\"dependabot\"] | |
| # } | |
| # publish-npm: | |
| # name: Publish to NPM | |
| # runs-on: ubuntu-latest | |
| # needs: [check-release-notes-pr] | |
| # steps: | |
| # - uses: sap/ai-sdk-js/.github/actions/setup@main | |
| # with: | |
| # node-version: ${{ env.NODE_VERSION }} | |
| # - name: publish | |
| # run: | | |
| # pnpm changeset publish --tag next | |
| # env: | |
| # NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }} | |
| # merge-release-notes-pr: | |
| # name: Merge Release Notes PR (if needed) | |
| # runs-on: ubuntu-latest | |
| # needs: [check-release-notes-pr, publish-npm] | |
| # if: needs.check-release-notes-pr.outputs.is_merged == 'false' | |
| # steps: | |
| # - name: 'Merge Release Notes PR' | |
| # run: | | |
| # echo "Attempting to merge PR for branch: ${{ needs.check-release-notes-pr.outputs.release_notes_branch }}" | |
| # gh pr merge --squash "${{ needs.check-release-notes-pr.outputs.release_notes_branch }}" --delete-branch --repo "${{ env.DOCS_REPO }}" | |
| # env: | |
| # GH_TOKEN: ${{ secrets.GH_CLOUD_SDK_JS_ADMIN_WRITE_TOKEN }} |