Skip to content

feat(GEN-2306): init repo #1

feat(GEN-2306): init repo

feat(GEN-2306): init repo #1

Workflow file for this run

name: Prepare Release
on:
push:
branches:
- 'main'
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
release-job:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
clean: true
- name: Clean workspace
run: |
git clean -fdx
git reset --hard
- name: Create or Update Release PR
uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.RELEASE_BOT_TOKEN }}
# The logic below handles the npm publication (after the release-bot PR was merged):
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}
- run: yarn cache clean
if: ${{ steps.release.outputs.release_created }}
- run: yarn install --frozen-lockfile
if: ${{ steps.release.outputs.release_created }}
- run: yarn build
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}