Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci-test-website.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI - Website
name: CI - website

on:
pull_request:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
name: Deploy

on:
# Manual deployment trigger
workflow_dispatch:
inputs:
deploy_type:
description: 'deploy type'
description: 'type'
required: true
type: choice
options:
- 'nightly'
- '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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-comment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Issue - Comment on Close
name: Issue - comment on close

on:
issues:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-reopen.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Issue - Reopen on Comment
name: Issue - reopen on comment

on:
issue_comment:
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/release-downport.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
Loading