Skip to content

Commit

Permalink
chore: mark snapshot releases as deprecated in npm registry (#11975)
Browse files Browse the repository at this point in the history
  • Loading branch information
alessbell authored Jul 25, 2024
1 parent abcbe8b commit 3d9eb47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/snapshot-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ jobs:
id: get-version
run: echo "version=$(node -p "require('./dist/package.json').version")" >> "$GITHUB_OUTPUT"

- name: Deprecate version
if: ${{ steps.added-files.outputs.changesets != '' }}
run: npm deprecate @apollo/client@${{ steps.get-version.outputs.version }} "This is a snapshot release from https://github.com/apollographql/apollo-client/pull/${{ github.event.issue.number }}. Use at your own discretion."

- name: Create comment
if: ${{ steps.added-files.outputs.changesets != '' }}
uses: peter-evans/[email protected]
Expand Down

0 comments on commit 3d9eb47

Please sign in to comment.