feat: extend strategy schema to store prompts under strategy (#1386) #6130
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
| name: Build | |
| permissions: | |
| id-token: write | |
| contents: write | |
| issues: read | |
| on: [push] | |
| env: | |
| CI_BUILD_NUM: ${{ github.run_id }} | |
| CI_BRANCH: ${{ github.ref_name }} | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v5 | |
| with: | |
| persist-credentials: 'false' | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Setup Node & NPM | |
| uses: ./.github/actions/setup-node-npm | |
| env: | |
| MYSTICAT_DATA_SERVICE_REPO_READ_TOKEN: ${{ secrets.MYSTICAT_DATA_SERVICE_REPO_READ_TOKEN }} | |
| - name: Lint, Test, Coverage Upload | |
| uses: ./.github/actions/lint-test-coverage | |
| with: | |
| ecr_pull_role_arn: ${{ secrets.AWS_ECR_PULL_ROLE_ARN }} | |
| aws_region: us-east-1 | |
| - name: Semantic Release (Dry Run) | |
| if: github.ref != 'refs/heads/main' | |
| run: npm run semantic-release-dry | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.ADOBE_BOT_GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }} | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| needs: test | |
| if: github.ref == 'refs/heads/main' | |
| env: | |
| MYSTICAT_DATA_SERVICE_REPO_READ_TOKEN: ${{ secrets.MYSTICAT_DATA_SERVICE_REPO_READ_TOKEN }} | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v5 | |
| with: | |
| persist-credentials: 'false' | |
| - name: Set up Node.js 22 (temporary - for bootstrap) | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '22.22.0' | |
| - name: Update NPM | |
| run: npm install -g npm@10.9.4 | |
| - name: Configure Git auth for private Mysticat types repo | |
| run: | | |
| git config --global url."https://x-access-token:${MYSTICAT_DATA_SERVICE_REPO_READ_TOKEN}@github.com/".insteadOf "https://github.com/" | |
| git config --global --add url."https://x-access-token:${MYSTICAT_DATA_SERVICE_REPO_READ_TOKEN}@github.com/".insteadOf "ssh://git@github.com/" | |
| git config --global --add url."https://x-access-token:${MYSTICAT_DATA_SERVICE_REPO_READ_TOKEN}@github.com/".insteadOf "git@github.com:" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Semantic Release | |
| run: npm run semantic-release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.ADOBE_BOT_GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }} |