Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix prerelease tag / identifier as next #66

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ on:
- preminor
- premajor
- prerelease
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'
dryRun:
description: 'Do not touch or write anything. Show the commands.'
required: true
Expand Down Expand Up @@ -59,17 +55,12 @@ 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.prereleaseIdentifier}} ${{inputs.dryRun && '--dry-run' || ''}}
run: pnpm publish -r --tag next ${{inputs.dryRun && '--dry-run' || ''}}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Log git changes
Expand Down