diff --git a/.github/workflows/ci-test-website.yaml b/.github/workflows/ci-test-website.yaml index 3c02e73cd265..aa643d20e77b 100644 --- a/.github/workflows/ci-test-website.yaml +++ b/.github/workflows/ci-test-website.yaml @@ -1,4 +1,4 @@ -name: CI - Website +name: CI - website on: pull_request: diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 5537317be4c9..02b4b354c387 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -1,10 +1,11 @@ name: Deploy on: + # Manual deployment trigger workflow_dispatch: inputs: deploy_type: - description: 'deploy type' + description: 'type' required: true type: choice options: @@ -12,9 +13,13 @@ on: - 'latest' default: 'nightly' + # Scheduled nightly deployments + schedule: + - cron: '0 0 * * *' # Runs daily at midnight UTC + jobs: deploy-nightly: - if: ${{ github.event.inputs.deploy_type == 'nightly' }} + if: ${{ github.event.inputs.deploy_type == 'nightly' || github.event_name == 'schedule' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/issue-comment.yaml b/.github/workflows/issue-comment.yaml index 3bdb8a67ced1..33d49701670d 100644 --- a/.github/workflows/issue-comment.yaml +++ b/.github/workflows/issue-comment.yaml @@ -1,4 +1,4 @@ -name: Issue - Comment on Close +name: Issue - comment on close on: issues: diff --git a/.github/workflows/issue-reopen.yaml b/.github/workflows/issue-reopen.yaml index e2fe4e2d4f4b..0203add9f2a3 100644 --- a/.github/workflows/issue-reopen.yaml +++ b/.github/workflows/issue-reopen.yaml @@ -1,4 +1,4 @@ -name: Issue - Reopen on Comment +name: Issue - reopen on comment on: issue_comment: diff --git a/.github/workflows/release-downport.yaml b/.github/workflows/release-downport.yaml new file mode 100644 index 000000000000..1c6b21f150cb --- /dev/null +++ b/.github/workflows/release-downport.yaml @@ -0,0 +1,52 @@ +name: Release Downport + +on: + workflow_dispatch: + inputs: + release_type: + description: 'Release Type: use patch | minor | major or leave empty for auto' + required: false + default: '' + npm_tag: + description: 'npm dist tag' + required: true + default: 'v1' + +jobs: + build-and-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + token: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }} + fetch-depth: 0 + - uses: actions/setup-node@v4.1.0 + with: + node-version: 20 + cache: 'yarn' + + - name: Install + run: yarn --frozen-lockfile + + - name: Version Bump + env: + NPM_USERNAME: ${{ secrets.NPM_USER }} + NPM_EMAIL: ${{ secrets.NPM_EMAIL }} + NPM_AUTH_TOKEN: ${{ secrets.NPM_RELEASE_AUTH_TOKEN }} + GH_TOKEN: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }} + run: | + npm config set //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN} + git config user.name "${{ secrets.UI5_WEBCOMP_BOT_NAME }}" + git config user.email "${{ secrets.UI5_WEBCOMP_BOT_EMAIL }}" + yarn lerna version ${{ github.event.inputs.release_type }} --conventional-graduate --force-conventional-graduate --yes --exact --create-release github + + - name: Build + run: yarn ci:releasebuild + + - name: Publish + env: + NPM_USERNAME: ${{ secrets.NPM_USER }} + NPM_EMAIL: ${{ secrets.NPM_EMAIL }} + NPM_AUTH_TOKEN: ${{ secrets.NPM_RELEASE_AUTH_TOKEN }} + GH_TOKEN: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }} + run: yarn lerna publish from-git --yes --dist-tag ${{ github.event.inputs.npm_tag }} \ No newline at end of file