The 39-year-old took eight wickets in the County Championship win over Somerset last week.
"I'm totally happy with retiring," he told BBC Radio Leeds.
"To play 20 years and have the career I've had, I'm very lucky. I've always wanted to go out on a high and hopefully I can go away with a trophy."
Sidebottom has taken 16 wickets at an average of 15.18 in his three Championship matches so far this summer.
Andrew Gale's side are second in the County Championship but were beaten by Surrey in the quarter-finals of the One-Day Cup on Tuesday.
Despite the disappointment, Sidebottom feels the side will have benefitted from the experience.
"We've got a lot of young, talented players in the team who got us to that position and I think they will gain from the experience of playing stronger teams," he said.
"We have put our heart and soul into doing better in one-day cricket because we've not been good enough in recent years. Hopefully the younger lads will learn from it.
"Guys like Ben Coad, Matthew Fisher and Matthew Waite have all come through the academy and done brilliantly."

Media playback is unsupported on your device
29 July 2015 Last updated at 05:00 BST
Microsoft is rolling out access to the latest version of its operating system in waves, to make sure everything runs smoothly.
The first people will be notified that an update is available on 29 July, while everyone else will have to wait.
The BBC's technology correspondent Rory Cellan-Jones was given a crash course in Windows 10 by product manager Ian Moulster.
He showed Rory some of the operating system's new features, including its voice controlled assistant Cortana.
Find out more about Windows 10

The buildings, in Cambridge, Castle Donington, Taunton and Wakefield, have never opened and cost an average of £1.9m each in 2014-15.
The charges are for rent, utilities and facilities management.
Five other buildings were constructed as part of a Labour plan to regionalise fire control centres. These have been let out, saving £90.5m in future costs.
The plan, approved in 2004, was for nine control centres to be built to replace 46 separate centres across the country.
But six years later, with costs spiralling and major delays to the IT software programme, the coalition government cancelled the scheme.
Fire minister Mark Francois said: "We inherited a poorly conceived and badly delivered top-down programme to create regional fire control rooms.
"To avoid further taxpayers' money being wasted, the project was terminated after it repeatedly ran over budget and behind schedule."
The Department for Communities and Local Government (DCLG) said it had "reduced site maintenance and support costs though renegotiating contracts with our service providers" at the four empty centres.
A Freedom of Information request by BBC Somerset showed three of the four centres cost more in rent, rates and other running costs in 2014-15 than each of them did in their first full year after construction was completed.
However, the amount spent on marketing the empty centres has been cut, from £37,250 in 2012-13, to £4,030 in 2014-15.
"In 2014-15 the marketing strategy focused on using internet marketing and direct marketing, which by its nature does not incur significant spend," DCLG said.
A spokesman added the department was in "active discussions" over letting out Castle Donington and Wakefield, with interest being shown by a telecoms company.
Taunton has only had a small number of enquiries, including "a very early enquiry from a government agency in the last week".
A document published by DCLG in March said the Wakefield negotiations, which involve a bidder for a separate government contract, will resolve in July when that contract is awarded.
The March report also said there had been a number of viewings of the Cambridge centre with interest from a private sector internet security company, but that is no longer described as "live".
The marketing company working for DCLG said it would continue its current strategy until August while also looking at alternative "cost reduction initiatives" including mothballing or reducing the equipment in the centres.
Each of the vacant centres still has a £6,000 espresso machine in-situ which DCLG says are "a landlord's fixture and do not belong to the department".
Yorkshire seamer Ryan Sidebottom is not rethinking his plan to retire at the end of the season despite his strong start to the campaign.
[NEXT_CONCEPT]
The first early adopters will be able to get their hands on Windows 10 from Wednesday.
[NEXT_CONCEPT]
Four empty fire control centres are still costing the government £7.6m a year, the BBC has learned.