Skip to content

Commit

Permalink
chore: add dry run flag to @turbo/repository release (#7297)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-olszewski authored Feb 7, 2024
1 parent 83a22a5 commit b1cdfd3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/turborepo-library-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Turborepo Library Release

on:
workflow_dispatch:
inputs:
dry_run:
description: "Do a dry run, skipping the final publish step."
type: boolean

jobs:
build:
Expand Down Expand Up @@ -134,6 +138,7 @@ jobs:
- name: Publish Artifacts
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ !inputs.dry_run }}
run: |
npm config set --location=project "//registry.npmjs.org/:_authToken" ${NPM_TOKEN}
VERSION=$(jq -r .version packages/turbo-repository/js/package.json)
Expand Down

0 comments on commit b1cdfd3

Please sign in to comment.