-
-
Notifications
You must be signed in to change notification settings - Fork 3
deprecated 워크플로우 구현 #702
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
deprecated 워크플로우 구현 #702
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| name: Deprecation ⚠️ | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| version: | ||
| description: "deprecated 할 버전 (예: 1.2.3)" | ||
| required: true | ||
| type: string | ||
| reason: | ||
| description: "deprecation 사유" | ||
| required: true | ||
| type: string | ||
|
|
||
| jobs: | ||
| deprecated: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Validate version format | ||
| run: | | ||
| VERSION="${{ inputs.version }}" | ||
| if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
| echo "❌ Invalid version format: $VERSION" | ||
| echo "Version must be in format: X.Y.Z (e.g., 1.2.3)" | ||
| exit 1 | ||
| fi | ||
|
|
||
| - uses: actions/checkout@v6 | ||
| - uses: oven-sh/setup-bun@v2 | ||
| - name: Deprecate npm package version | ||
| run: | | ||
| echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | ||
DaleSeo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| PACKAGE_NAME=$(jq -r .name package.json) | ||
| npm deprecate "$PACKAGE_NAME@${{ inputs.version }}" "${{ inputs.reason }}" | ||
|
||

Uh oh!
There was an error while loading. Please reload this page.