|
| 1 | +name: Build, Test and Release Platforma Block |
| 2 | +on: |
| 3 | + merge_group: |
| 4 | + pull_request: |
| 5 | + types: [opened, reopened, synchronize] |
| 6 | + branches: |
| 7 | + - 'main' |
| 8 | + push: |
| 9 | + branches: |
| 10 | + - 'main' |
| 11 | + workflow_dispatch: {} |
| 12 | +jobs: |
| 13 | + init: |
| 14 | + if: github.repository != 'milaboratory/platforma-block-boilerplate' |
| 15 | + runs-on: ubuntu-latest |
| 16 | + steps: |
| 17 | + - uses: milaboratory/github-ci/actions/context/init@v4 |
| 18 | + with: |
| 19 | + version-canonize: false |
| 20 | + branch-versioning: main |
| 21 | + run: |
| 22 | + if: github.repository != 'milaboratory/platforma-block-boilerplate' |
| 23 | + needs: |
| 24 | + - init |
| 25 | + uses: milaboratory/github-ci/.github/workflows/node-simple-pnpm.yaml@v4 |
| 26 | + with: |
| 27 | + app-name: 'Block: block-boilerplate' |
| 28 | + app-name-slug: 'block-block-boilerplate' |
| 29 | + notify-telegram: true |
| 30 | + node-version: '20.x' |
| 31 | + build-script-name: 'build' |
| 32 | + pnpm-recursive-build: false |
| 33 | + test: false |
| 34 | + test-script-name: 'test' |
| 35 | + pnpm-recursive-tests: false |
| 36 | + team-id: 'ciplopen' |
| 37 | + |
| 38 | + publish-to-public: 'true' |
| 39 | + package-path: 'block' |
| 40 | + create-tag: 'true' |
| 41 | + |
| 42 | + npmrc-config: | |
| 43 | + { |
| 44 | + "registries": { |
| 45 | + "https://registry.npmjs.org/": { |
| 46 | + "scopes": ["milaboratories", "platforma-sdk", "platforma-open"], |
| 47 | + "tokenVar": "NPMJS_TOKEN" |
| 48 | + } |
| 49 | + } |
| 50 | + } |
| 51 | + secrets: |
| 52 | + env: | |
| 53 | + { "PL_LICENSE": ${{ toJSON(secrets.MI_LICENSE) }}, |
| 54 | + "MI_LICENSE": ${{ toJSON(secrets.MI_LICENSE) }}, |
| 55 | + "NPMJS_TOKEN": ${{ toJSON(secrets.NPMJS_TOKEN) }}, |
| 56 | + "PL_CI_TEST_USER": ${{ toJSON(secrets.PL_CI_TEST_USER) }}, |
| 57 | + "PL_CI_TEST_PASSWORD": ${{ toJSON(secrets.PL_CI_TEST_PASSWORD) }}, |
| 58 | +
|
| 59 | + "AWS_CI_IAM_MONOREPO_SIMPLE_ROLE": ${{ toJSON(secrets.AWS_CI_IAM_MONOREPO_SIMPLE_ROLE) }}, |
| 60 | + "AWS_CI_TURBOREPO_S3_BUCKET": ${{ toJSON(secrets.AWS_CI_TURBOREPO_US_S3_BUCKET) }}, |
| 61 | + "PL_REGISTRY_PLATFORMA_OPEN_UPLOAD_URL": ${{ toJSON(secrets.PL_REGISTRY_PLOPEN_UPLOAD_URL) }} } |
| 62 | +
|
| 63 | + TELEGRAM_NOTIFICATION_TARGET: ${{ secrets.TG_CHANNEL_MIBUILDS }} |
| 64 | + TELEGRAM_API_TOKEN: ${{ secrets.TG_CI_BOT_TOKEN }} |
| 65 | + |
| 66 | + GH_ZEN_APP_ID: ${{ secrets.GH_ZEN_APP_ID }} |
| 67 | + GH_ZEN_APP_PRIVATE_KEY: ${{ secrets.GH_ZEN_APP_PRIVATE_KEY }} |
0 commit comments