Skip to content

Commit

Permalink
refactor: deprecate every dev version one by one
Browse files Browse the repository at this point in the history
  • Loading branch information
scolladon committed Apr 20, 2024
1 parent 6d5b0df commit bea1de0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/on-merged-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- name: Deprecate related dev versions
run: npm deprecate sfdx-git-delta@${{env.CURRENT_VERSION}}-${{ env.DEV_CHANNEL }}.x "Deprecated dev version"
run: |
DEV_VERSIONS=$(npm view sfdx-git-delta versions --json | jq -r '.[]' | grep -E "${{env.CURRENT_VERSION}}-${{ env.DEV_CHANNEL }}")
[ ! -z "$DEV_VERSIONS" ] && for DEV_VERSION in ${DEV_VERSIONS}; do npm deprecate sfdx-git-delta@${DEV_VERSION} "Deprecated dev version"; done
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit bea1de0

Please sign in to comment.