Skip to content

Commit

Permalink
ci: set prereleaseIdentifier
Browse files Browse the repository at this point in the history
  • Loading branch information
goosewobbler committed Nov 26, 2024
1 parent d68609c commit 54c6c6f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ on:
- preminor
- premajor
- prerelease
npmTag:
description: 'NPM tag. Defaults to "next".'
prereleaseIdentifier:
description: 'Prerelease Identifier. Used for NPM tag and version string. Defaults to "next", e.g. "1.0.0-next.0".'
required: true
default: 'next'

Expand Down Expand Up @@ -54,12 +54,17 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Update Turbo Version config
uses: restackio/[email protected]
with:
file: version.config.json
fields: '{"prereleaseIdentifier": "${{inputs.prereleaseIdentifier}}"}'
- name: Create Release and Tags
shell: bash
run: pnpm turbo-version -b ${{inputs.prereleaseVersion}}
- name: Publish to NPM
shell: bash
run: pnpm publish -r --tag ${{inputs.npmTag}}
run: pnpm publish -r --tag ${{inputs.prereleaseIdentifier}}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Push Tags and Commits
Expand Down

0 comments on commit 54c6c6f

Please sign in to comment.