Create Release #3
This file contains hidden or 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: Create Release | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| increment: | |
| type: choice | |
| description: Increment | |
| required: true | |
| options: | |
| - major | |
| - minor | |
| - patch | |
| permissions: | |
| id-token: write | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout [main] | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Init npm cache | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '24' | |
| cache: 'npm' | |
| registry-url: 'https://registry.npmjs.org' | |
| package-manager-cache: false | |
| - name: install dependencies | |
| run: npm ci | |
| - name: git config | |
| run: | | |
| git config --global user.name "Release Workflow" | |
| git config --global user.email "support@getjetstream.app" | |
| - name: Run Release | |
| run: npm run release -- "$INCREMENT" --ci | |
| env: | |
| INCREMENT: ${{ github.event.inputs.increment }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |