Skip to content

Commit df89286

Browse files
authored
ci: temporarily restore the release downport (#12661)
* ci: add scheduled nightly deploy * ci: temp restore downport workflow
1 parent 7e2a07d commit df89286

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Release Downport
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release_type:
7+
description: 'Release Type: use patch | minor | major or leave empty for auto'
8+
required: false
9+
default: ''
10+
npm_tag:
11+
description: 'npm dist tag'
12+
required: true
13+
default: 'v1'
14+
15+
jobs:
16+
build-and-release:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
token: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }}
22+
fetch-depth: 0
23+
- uses: actions/setup-node@v4.1.0
24+
with:
25+
node-version: 20
26+
cache: 'yarn'
27+
28+
- name: Install
29+
run: yarn --frozen-lockfile
30+
31+
- name: Version Bump
32+
env:
33+
NPM_USERNAME: ${{ secrets.NPM_USER }}
34+
NPM_EMAIL: ${{ secrets.NPM_EMAIL }}
35+
NPM_AUTH_TOKEN: ${{ secrets.NPM_RELEASE_AUTH_TOKEN }}
36+
GH_TOKEN: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }}
37+
run: |
38+
npm config set //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}
39+
git config user.name "${{ secrets.UI5_WEBCOMP_BOT_NAME }}"
40+
git config user.email "${{ secrets.UI5_WEBCOMP_BOT_EMAIL }}"
41+
yarn lerna version ${{ github.event.inputs.release_type }} --conventional-graduate --force-conventional-graduate --yes --exact --create-release github
42+
43+
- name: Build
44+
run: yarn ci:releasebuild
45+
46+
- name: Publish
47+
env:
48+
NPM_USERNAME: ${{ secrets.NPM_USER }}
49+
NPM_EMAIL: ${{ secrets.NPM_EMAIL }}
50+
NPM_AUTH_TOKEN: ${{ secrets.NPM_RELEASE_AUTH_TOKEN }}
51+
GH_TOKEN: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }}
52+
run: yarn lerna publish from-git --yes --dist-tag ${{ github.event.inputs.npm_tag }}

0 commit comments

Comments
 (0)