Release RC version [auto] #2
This file contains 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: Release RC version [auto] | |
on: | |
schedule: | |
- cron: "00 08 * * THU" | |
jobs: | |
build-and-release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
id-token: write | |
issues: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }} | |
fetch-depth: 0 | |
- uses: actions/[email protected] | |
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 --conventional-prerelease --force-publish --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 | |
- name: Pre-Deploy | |
run: | | |
yarn ci:deploy:nightly | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: packages/website/build # The folder the action should deploy. | |
target-folder: nightly | |
clean: true | |
- name: Publish Release Comments | |
uses: actions/github-script@v7 | |
env: | |
NODE_OPTIONS: '--max-old-space-size=12096' | |
GH_TOKEN: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }} | |
with: | |
github-token: ${{ secrets.UI5_WEBCOMP_BOT_GH_TOKEN }} | |
script: | | |
const commentOnFixedIssues = (await import('${{ github.workspace }}/.github/actions/commentOnFixedIssues.mjs')).default; | |
await commentOnFixedIssues({ github, context }); |