-
-
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 1 commit
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,37 @@ | ||
| 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 # package.json 파일을 읽기 위해서 사용 | ||
| - uses: actions/setup-node@v6 | ||
DaleSeo marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| with: | ||
| registry-url: "https://registry.npmjs.org" # npmrc 자동 생성을 위해서 사용 | ||
| - name: Deprecate npm package version | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
DaleSeo marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| run: | | ||
| 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.